Fix examine using wrong cmdset target for accounts. Resolve #1886
This commit is contained in:
parent
0ef2e667e4
commit
bc5210eb9c
6 changed files with 139 additions and 106 deletions
|
|
@ -180,7 +180,7 @@ def import_cmdset(path, cmdsetobj, emit_to_obj=None, no_logging=False):
|
|||
except ImportError as exc:
|
||||
if len(trace()) > 2:
|
||||
# error in module, make sure to not hide it.
|
||||
_, _, tb = sys.exc_info()
|
||||
dum, dum, tb = sys.exc_info()
|
||||
raise exc.with_traceback(tb)
|
||||
else:
|
||||
# try next suggested path
|
||||
|
|
@ -191,7 +191,7 @@ def import_cmdset(path, cmdsetobj, emit_to_obj=None, no_logging=False):
|
|||
except AttributeError as exc:
|
||||
if len(trace()) > 2:
|
||||
# Attribute error within module, don't hide it
|
||||
_, _, tb = sys.exc_info()
|
||||
dum, dum, tb = sys.exc_info()
|
||||
raise exc.with_traceback(tb)
|
||||
else:
|
||||
errstring += _("\n(Unsuccessfully tried '%s')." % python_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue