From 448d9ee9856afcc374c3e7fe80ddcb357868038b Mon Sep 17 00:00:00 2001 From: Jason Ray Date: Mon, 25 Dec 2023 12:51:16 -0500 Subject: [PATCH] support older python version --- pulpo-cli.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pulpo-cli.py b/pulpo-cli.py index f0103e9..5fefc74 100644 --- a/pulpo-cli.py +++ b/pulpo-cli.py @@ -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