[fix] Reraise correctly the error

This commit is contained in:
ljf 2018-06-05 11:25:37 +02:00
parent 65c18dcaa1
commit 312429d92a

View file

@ -251,8 +251,8 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password
result = func(*args, **kwargs)
except Exception as e:
uo.error(e)
import pdb;pdb.set_trace()
raise e
t, v, tb = exc_info()
raise t, v, tb
else:
uo.success()
return result