Fix startup error in AWS Lambda

This commit is contained in:
Kevin Lord
2020-01-20 22:39:40 -06:00
parent 7317839fc7
commit 0d9ebf94ee

View File

@@ -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