Skip to content

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

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

Closed
wants to merge 1 commit into 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.

@Urgau
Copy link
Member

Urgau commented Apr 15, 2025

@WaffleLapkin, still interested in this change? If so, can you address Jack comment.

@WaffleLapkin
Copy link
Member Author

@Urgau no, not really. Feel free to take these changes if you want.

@WaffleLapkin WaffleLapkin deleted the zulipless branch April 16, 2025 01:17
@WaffleLapkin WaffleLapkin restored the zulipless branch April 16, 2025 01:17
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.

3 participants