mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] simplify code
"raise" alone will do exactly the same thing.
This commit is contained in:
parent
f1181540c6
commit
b2d07d1c6e
1 changed files with 1 additions and 2 deletions
|
@ -252,8 +252,7 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password
|
||||||
result = func(*args, **kwargs)
|
result = func(*args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
uo.error(e)
|
uo.error(e)
|
||||||
t, v, tb = exc_info()
|
raise
|
||||||
raise t, v, tb
|
|
||||||
else:
|
else:
|
||||||
uo.success()
|
uo.success()
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Reference in a new issue