mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Further error catching
This commit is contained in:
parent
103dfaa2a5
commit
668e2bfcd5
@ -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
|
||||
|
||||
|
@ -336,7 +336,7 @@ class PluginsRegistry:
|
||||
|
||||
if deleted_count > 0:
|
||||
logger.info(f"Removed {deleted_count} old scheduled tasks")
|
||||
except OperationalError:
|
||||
except (ProgrammingError, OperationalError):
|
||||
# Database might not yet be ready
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user