mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
log.py: don't inject log_ref if the operation didnt start yet
This commit is contained in:
parent
4f44df388e
commit
cd1f64383b
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ class OperationLogger(object):
|
|||
# we want to inject the log ref in the exception, such that it may be
|
||||
# transmitted to the webadmin which can then redirect to the appropriate
|
||||
# log page
|
||||
if isinstance(error, Exception) and not isinstance(error, YunohostValidationError):
|
||||
if self.started_at and isinstance(error, Exception) and not isinstance(error, YunohostValidationError):
|
||||
error.log_ref = self.name
|
||||
|
||||
if self.ended_at is not None or self.started_at is None:
|
||||
|
|
Loading…
Add table
Reference in a new issue