mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Detect un declared success uo
This commit is contained in:
parent
9eee035a8d
commit
5dbf7b567e
1 changed files with 2 additions and 3 deletions
|
@ -251,9 +251,8 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password
|
|||
except Exception as e:
|
||||
uo.error(e)
|
||||
raise e
|
||||
finally:
|
||||
# Close the unit operation if it hasn't been closed before
|
||||
uo.close(exc_info()[0])
|
||||
else:
|
||||
uo.success()
|
||||
return result
|
||||
return func_wrapper
|
||||
return decorate
|
||||
|
|
Loading…
Add table
Reference in a new issue