Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CLI: UnboundLocalError: local variable 'queues' referenced before assignment #209

Open
plars opened this issue Feb 27, 2024 · 1 comment

Comments

@plars
Copy link
Collaborator

plars commented Feb 27, 2024

Alex reported this earlier, looks like we need to not just handle the 404 case, but others as well now that it's possible we could get 403, etc.

  testflinger list-queues
  shell: /usr/bin/bash -e {0}
  
Advertised queues on this server:
Traceback (most recent call last):
  File "/snap/testflinger-cli/161/bin/testflinger-cli", line 8, in <module>
    sys.exit(cli())
  File "/snap/testflinger-cli/161/lib/python3.8/site-packages/testflinger_cli/__init__.py", line 47, in cli
    tfcli.run()
  File "/snap/testflinger-cli/161/lib/python3.8/site-packages/testflinger_cli/__init__.py", line 142, in run
    raise SystemExit(self.args.func())
  File "/snap/testflinger-cli/161/lib/python3.8/site-packages/testflinger_cli/__init__.py", line 522, in list_queues
    for name, description in sorted(queues.items()):
UnboundLocalError: local variable 'queues' referenced before assignment
Error: Process completed with exit code 1.
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-293.

This message was autogenerated

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant