Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 24, 2023
1 parent 21039e7 commit 4a51c8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def initialize_settings(self):

# TODO: Validate slash ID (/^[A-Za-z0-9_]+$/)
# The "default" handler above takes precedence over any "default" command here
command_name = f"/{chat_handler.slash_id}" if chat_handler.slash_id else "default"
command_name = (
f"/{chat_handler.slash_id}" if chat_handler.slash_id else "default"
)

if command_name in jai_chat_handlers:
self.log.error(
Expand Down

0 comments on commit 4a51c8e

Please sign in to comment.