Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't panic when there is no zulip token #1767

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WaffleLapkin
Copy link
Member

triagebot currently uses env::var().unwrap() inside code that handles zulip things, which is not ideal (and leads to panics spamming logs for people like me, who run triagebot themselves).

I'm not happy with this PR, but it probably solves the issue...

Ideally there would be a better system for enabling/disabling subsystems for the bot (via a per-instance-config and/or env vars), but I do not have energy to work on anything like that.

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't really like the indentation changes here. Can probably make this a bit cleaner by either splitting the inner bits into new functions, or moving the logic further up.

I do like the ZulipContext change though, happy to review that separately if you want to get that landed.

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

Successfully merging this pull request may close these issues.

None yet

2 participants