mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We don't want this to call .error() for legit logs already completed
This commit is contained in:
parent
ce1cabc680
commit
61931f2c4b
1 changed files with 4 additions and 1 deletions
|
@ -502,7 +502,10 @@ class OperationLogger(object):
|
||||||
The missing of the message below could help to see an electrical
|
The missing of the message below could help to see an electrical
|
||||||
shortage.
|
shortage.
|
||||||
"""
|
"""
|
||||||
self.error(m18n.n('log_operation_unit_unclosed_properly'))
|
if self.ended_at is not None or self.started_at is None:
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
self.error(m18n.n('log_operation_unit_unclosed_properly'))
|
||||||
|
|
||||||
|
|
||||||
def _get_description_from_name(name):
|
def _get_description_from_name(name):
|
||||||
|
|
Loading…
Add table
Reference in a new issue