[mod] simplify code

"raise" alone will do exactly the same thing.
This commit is contained in:
Bram 2018-06-22 05:56:27 +02:00 committed by GitHub
parent f1181540c6
commit b2d07d1c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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