Skip to content

KeyError: 'published_parsed' #2

@casens5

Description

@casens5
	Adding posts... Traceback (most recent call last):
		File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
			return _run_code(code, main_globals, None,
		File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
			exec(code, run_globals)
		File "/home/mapa/code/pocketrss/__main__.py", line 4, in <module>
			main()
		File "/home/mapa/code/pocketrss/main.py", line 22, in main
			for item in get_new_items():
		File "/home/mapa/code/pocketrss/feeds.py", line 24, in get_new_items
			post_time = int(mktime(post['published_parsed']))
		File "/usr/lib/python3/dist-packages/feedparser.py", line 364, in __getitem__
			return dict.__getitem__(self, key)
	KeyError: 'published_parsed'`

running Lubuntu 20.04
python 3.8.5

i've thought maybe one of the feeds was malformatted, but i checked all my feeds with liferea, and they're all working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions