-
Notifications
You must be signed in to change notification settings - Fork 20
Fix EM101: assign exception string literals to variables #186
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
base: main
Are you sure you want to change the base?
Changes from all commits
17111b4
885bed4
d6f51db
d7ab851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -194,10 +194,12 @@ def _server_request_run( | |||||
| template_values: dict | None = None, | ||||||
| ): | ||||||
| if not self.active_database: | ||||||
| raise RuntimeError("No Active Database") | ||||||
| msg = "No Active Database" | ||||||
| raise RuntimeError(msg) | ||||||
|
|
||||||
| if not self.active_connection: | ||||||
| raise RuntimeError("No Active Connection") | ||||||
| msg = "No Active Connection" | ||||||
| raise RuntimeError(msg) | ||||||
|
|
||||||
| if isinstance(quick_eval_pos, dict): | ||||||
| # A quick eval position contains: | ||||||
|
|
@@ -302,7 +304,8 @@ def _format(self, query): | |||||
| def _resolve_query_server(self): | ||||||
| help_msg = shell_command_to_string(self.codeql_cli + ["excute", "--help"]) | ||||||
|
||||||
| help_msg = shell_command_to_string(self.codeql_cli + ["excute", "--help"]) | |
| help_msg = shell_command_to_string(self.codeql_cli + ["execute", "--help"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_AI_token()falls back toCOPILOT_TOKEN, but the raised error message only mentionsAI_API_TOKEN. Since this message is user-facing and the function’s docstring mentions both env vars, update the message to include both (e.g., AI_API_TOKEN or COPILOT_TOKEN) to reduce confusion when configuration fails.