From 0d9ebf94eeb422946d4287f48f1a987ddbc7c7db Mon Sep 17 00:00:00 2001 From: Kevin Lord Date: Mon, 20 Jan 2020 22:39:40 -0600 Subject: [PATCH] Fix startup error in AWS Lambda --- django_q/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_q/conf.py b/django_q/conf.py index 6f2b718..1c11160 100644 --- a/django_q/conf.py +++ b/django_q/conf.py @@ -156,7 +156,7 @@ class Conf(object): # OSX doesn't implement qsize because of missing sem_getvalue() try: QSIZE = Queue().qsize() == 0 - except NotImplementedError: + except (NotImplementedError, OSError): QSIZE = False # Getting the signal names