Skip to content

Commit

Permalink
fix: typing added
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad authored and regisb committed Dec 8, 2023
1 parent 2317bcc commit 6d12b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorwebui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def shell() -> None:
# incorrectly calls the `commands` attribute. Note that this enables us to
# run shell within shell, which is cool but a little weird...
ctx = click.get_current_context()
ctx.parent.command.commands = {}
if ctx.parent and ctx.parent.command:
ctx.parent.command.commands = {} # type: ignore

while True:
try:
Expand Down

0 comments on commit 6d12b7f

Please sign in to comment.