2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-24 15:50:54 +00:00

ignore db not ready in coverage

This commit is contained in:
Matthias
2022-05-03 22:12:34 +02:00
parent b9cbc287f2
commit 08e278232b

View File

@ -230,7 +230,7 @@ class ScheduleMixin:
scheduled_task.delete()
except Schedule.DoesNotExist:
pass
except (ProgrammingError, OperationalError):
except (ProgrammingError, OperationalError): # pragma: no cover
# Database might not yet be ready
logger.warning("unregister_tasks failed, database not ready")