Add the exception string when a osc command fails to load
Change-Id: Ifbd9bc9246fb18b1203d6adaf96c7ece3b8a2b04
This commit is contained in:
parent
5f24cf2629
commit
ba1677b835
@ -18,6 +18,7 @@ plugins with the purpose of detecting duplicate commands.
|
||||
"""
|
||||
|
||||
import pkg_resources
|
||||
import traceback
|
||||
|
||||
|
||||
def find_duplicates():
|
||||
@ -84,7 +85,9 @@ def find_duplicates():
|
||||
try:
|
||||
ep.load()
|
||||
except Exception:
|
||||
failed_cmds.setdefault(ep_name, []).append(ep.module_name)
|
||||
exc_string = traceback.format_exc()
|
||||
message = "{}\n{}".format(ep.module_name, exc_string)
|
||||
failed_cmds.setdefault(ep_name, []).append(message)
|
||||
|
||||
if _is_valid_command(ep_name, ep.module_name, valid_cmds):
|
||||
valid_cmds.setdefault(ep_name, []).append(ep.module_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user