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()
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")