mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
This updates our error handling of invalid Slack API tokens (and other networking error handling) to mostly make sense: * A token that doesn't start with `xoxp-` gives an extended error early. * An AssertionError for the codebase is correctly declared as such. * We check for token shape errors before querying the Slack API. We could still do useful work to raise custom exception classes here. Thanks to @stavrospat for raising this issue.
42 KiB
42 KiB