Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Extending status command for multiple spaces #187

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jurkov
Copy link
Contributor

@jurkov jurkov commented Oct 26, 2017

No description provided.

if resp.status != 200:
if target is not None:
bot.privmsg(target, msg)
raise Exception()
Copy link
Member

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

Copy link
Contributor Author

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:
Copy link
Member

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

Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants