diff --git a/django_rq/tests/utils.py b/django_rq/tests/utils.py index cc0ca0c3..f2091f58 100644 --- a/django_rq/tests/utils.py +++ b/django_rq/tests/utils.py @@ -24,4 +24,8 @@ def get_queue_index(name: str = 'default') -> int: def query_user() -> Optional[User]: - return User.objects.first() + try: + return User.objects.first() + except Exception as e: + print('Exception caught when querying user: ', e) + raise e