-
Notifications
You must be signed in to change notification settings - Fork 11
Extending status command for multiple spaces #187
base: master
Are you sure you want to change the base?
Conversation
Travis fix no one likes bare excepts - hope someone like this except
if resp.status != 200: | ||
if target is not None: | ||
bot.privmsg(target, msg) | ||
raise Exception() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ideally should throw a custom exception, not a generic one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it is a good idea. You can add this.
@@ -202,8 +202,8 @@ def _get_talk(bot, hall, slot=0): | |||
|
|||
try: | |||
json_data = _get_json_data(bot) | |||
except: | |||
"""Silently ignore errors""" | |||
except Exception as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this should catch only this custom exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it is a good idea. You can add this. But this is a PR for station-plugin, not cccongress.
No description provided.