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

Commits on Mar 1, 2018

  1. ceph.in: use a differnt variable for holding thrown exception

    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 committed Mar 1, 2018
    Configuration menu
    Copy the full SHA
    487b322 View commit details
    Browse the repository at this point in the history