Skip to content

Commit

Permalink
support older python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonray committed Dec 25, 2023
1 parent e145bd6 commit 448d9ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pulpo-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ def main():
command_parts = args.command.split('.')
command_parent = command_parts[0]

match command_parent:
case 'queue':
QueueCommands.run(args)
case _:
raise Exception(f'invalid command [{args.command}][{command_parent}]')
if command_parent== 'queue':
QueueCommands.run(args)
else:
raise Exception(f'invalid command [{args.command}][{command_parent}]')

return 0

Expand Down

0 comments on commit 448d9ee

Please sign in to comment.