Skip to content

Commit

Permalink
Update packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py
Browse files Browse the repository at this point in the history
Co-authored-by: david qiu <david@qiu.dev>
  • Loading branch information
andrewfulton9 and dlqqq authored Oct 3, 2024
1 parent 82abef5 commit 2503662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def process_message(self, message: HumanChatMessage):
return

# Make sure the path exists.
if (not len(args.path) == 1) or (not args.path[0]):
if not (len(args.path) == 1 and args.path[0]):
print(self.parser.format_usage())
no_path_arg_message = (
"Please specify a directory or pattern you would like to "
Expand Down

0 comments on commit 2503662

Please sign in to comment.