mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Further error catching
This commit is contained in:
@ -154,7 +154,7 @@ class ScheduleMixin:
|
||||
minutes=task.get('minutes', None),
|
||||
repeats=task.get('repeats', -1),
|
||||
)
|
||||
except OperationalError:
|
||||
except (ProgrammingError, OperationalError):
|
||||
# Database might not yet be ready
|
||||
pass
|
||||
|
||||
@ -175,7 +175,7 @@ class ScheduleMixin:
|
||||
scheduled_task.delete()
|
||||
except Schedule.DoesNotExist:
|
||||
pass
|
||||
except OperationalError:
|
||||
except (ProgrammingError, OperationalError):
|
||||
# Database might not yet be ready
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user