2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-08 08:18:50 +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
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

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