Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
slack: Change invalid token error message.
Aman Agrawal68372f8e0341
diff --git a/zerver/data_import/slack.py b/zerver/data_import/slack.pyindex 73cd68399ac..4eb5984ed73 100644--- a/zerver/data_import/slack.py+++ b/zerver/data_import/slack.py@@ -1675,7 +1675,7 @@ def check_token_access(token: str, required_scopes: set[str]) -> None:f"Slack token is missing the following required scopes: {sorted(missing_scopes)}")else:- raise Exception("Unknown token type -- must start with xoxb- or xoxp-")+ raise Exception("Enter a token. Valid tokens start with xoxb-.")def get_slack_api_data(diff --git a/zerver/tests/test_slack_importer.py b/zerver/tests/test_slack_importer.pyindex 317d8bd3250..b41ef7c0316 100644--- a/zerver/tests/test_slack_importer.py+++ b/zerver/tests/test_slack_importer.py@@ -366,7 +366,7 @@ class SlackImporter(ZulipTestCase):self.assertEqual(exception_for("xoxq-unknown"),- "Unknown token type -- must start with xoxb- or xoxp-",+ "Enter a token. Valid tokens start with xoxb-.",)self.assertEqual(