mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 02:11:16 +00:00
Further error catching
This commit is contained in:
1 parent
103dfaa2a5
commit
668e2bfcd5
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user