Fix error message

This commit is contained in:
Oliver Walters 2022-05-16 22:08:58 +10:00
parent 73413baa59
commit 2ed69f638a

View File

@ -126,8 +126,8 @@ def heartbeat():
try:
from django_q.models import Success
logger.info("Could not perform heartbeat task - App registry not ready")
except AppRegistryNotReady: # pragma: no cover
logger.info("Could not perform heartbeat task - App registry not ready")
return
threshold = timezone.now() - timedelta(minutes=30)