You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Once I run the code, a KeyError: 'title' appears
To Reproduce
Steps to reproduce the behavior:
run pip install --upgrade telegram-rss
properly edit the file at \telegram-rss\config.toml
The following error appears:
C:\Users\loren>python -m telegram_rss update Traceback (most recent call last): File "C:\Users\loren\anaconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\loren\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\__main__.py", line 6, in <module> main() File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\main.py", line 67, in main sys.exit(cli(obj=config)) # pylint: disable=E1123,E1120 File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 610, in invoke return callback(*args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\click\decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\main.py", line 48, in update send_update(bot=bot, config=ctx.obj) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\telegram.py", line 70, in send_update entries = updater.get_new_entries() File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\updater.py", line 31, in get_new_entries if not self.feed or self.feed == self.local_feed: File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\updater.py", line 75, in feed self._feed = Feed.from_feedparser(raw_feed) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\feed.py", line 37, in from_feedparser return cls(channel=feed["channel"], items=feed["items"]) File "<attrs generated init telegram_rss.feed.feed.Feed>", line 7, in __init__ File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\feed.py", line 16, in __attrs_post_init__ self.channel = Channel.from_dict(self.channel) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\channel.py", line 25, in from_dict title=item["title"], File "C:\Users\loren\anaconda3\lib\site-packages\feedparser\util.py", line 113, in __getitem__ return dict.__getitem__(self, key) KeyError: 'title'
Expected behavior
Regular behaviour
Screenshots
Copypasted above the error message that appears
Desktop (please complete the following information):
Python Version 3.9
The text was updated successfully, but these errors were encountered:
Describe the bug
Once I run the code, a
KeyError: 'title'
appearsTo Reproduce
Steps to reproduce the behavior:
pip install --upgrade telegram-rss
\telegram-rss\config.toml
C:\Users\loren>python -m telegram_rss update Traceback (most recent call last): File "C:\Users\loren\anaconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\loren\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\__main__.py", line 6, in <module> main() File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\main.py", line 67, in main sys.exit(cli(obj=config)) # pylint: disable=E1123,E1120 File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\loren\anaconda3\lib\site-packages\click\core.py", line 610, in invoke return callback(*args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\click\decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\main.py", line 48, in update send_update(bot=bot, config=ctx.obj) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\telegram.py", line 70, in send_update entries = updater.get_new_entries() File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\updater.py", line 31, in get_new_entries if not self.feed or self.feed == self.local_feed: File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\updater.py", line 75, in feed self._feed = Feed.from_feedparser(raw_feed) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\feed.py", line 37, in from_feedparser return cls(channel=feed["channel"], items=feed["items"]) File "<attrs generated init telegram_rss.feed.feed.Feed>", line 7, in __init__ File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\feed.py", line 16, in __attrs_post_init__ self.channel = Channel.from_dict(self.channel) File "C:\Users\loren\anaconda3\lib\site-packages\telegram_rss\feed\channel.py", line 25, in from_dict title=item["title"], File "C:\Users\loren\anaconda3\lib\site-packages\feedparser\util.py", line 113, in __getitem__ return dict.__getitem__(self, key) KeyError: 'title'
Expected behavior
Regular behaviour
Screenshots
Copypasted above the error message that appears
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: