Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ceph.in: use a different variable for holding thrown exception #20663

Merged
merged 1 commit into from Mar 5, 2018

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Mar 1, 2018

otherwise, we will have

$ bin/ceph osd
Traceback (most recent call last):
File "bin/ceph", line 1178, in
retval = main()
File "bin/ceph", line 1109, in main
verbose)
File "bin/ceph", line 535, in new_style_command
valid_dict = validate_command(sigdict, cmdargs, verbose)
File "/var/ceph/ceph/src/pybind/ceph_argparse.py", line 1083, in
validate_command
if found or e:
UnboundLocalError: local variable 'e' referenced before assignment

when using python3

Signed-off-by: Kefu Chai kchai@redhat.com

otherwise, we will have

$ bin/ceph osd
Traceback (most recent call last):
  File "bin/ceph", line 1178, in <module>
    retval = main()
  File "bin/ceph", line 1109, in main
    verbose)
  File "bin/ceph", line 535, in new_style_command
    valid_dict = validate_command(sigdict, cmdargs, verbose)
  File "/var/ceph/ceph/src/pybind/ceph_argparse.py", line 1083, in
validate_command
    if found or e:
UnboundLocalError: local variable 'e' referenced before assignment

when using python3

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Mar 2, 2018

@jcsp jcsp merged commit d9a2898 into ceph:master Mar 5, 2018
@tchaikov tchaikov deleted the wip-ceph.in-py3 branch March 5, 2018 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants