mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +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),
|
minutes=task.get('minutes', None),
|
||||||
repeats=task.get('repeats', -1),
|
repeats=task.get('repeats', -1),
|
||||||
)
|
)
|
||||||
except OperationalError:
|
except (ProgrammingError, OperationalError):
|
||||||
# Database might not yet be ready
|
# Database might not yet be ready
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ class ScheduleMixin:
|
|||||||
scheduled_task.delete()
|
scheduled_task.delete()
|
||||||
except Schedule.DoesNotExist:
|
except Schedule.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
except OperationalError:
|
except (ProgrammingError, OperationalError):
|
||||||
# Database might not yet be ready
|
# Database might not yet be ready
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ class PluginsRegistry:
|
|||||||
|
|
||||||
if deleted_count > 0:
|
if deleted_count > 0:
|
||||||
logger.info(f"Removed {deleted_count} old scheduled tasks")
|
logger.info(f"Removed {deleted_count} old scheduled tasks")
|
||||||
except OperationalError:
|
except (ProgrammingError, OperationalError):
|
||||||
# Database might not yet be ready
|
# Database might not yet be ready
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user