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

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.

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.

4 participants