in compat.py you are importing the Class Queue from the module Queue
from queue import Queue as Queue
in
you are looking for the exception
Queue.Empty from the module
Queue not the Class
Queue
This will give the exception AttributeError: type object 'Queue' has no attribute 'Empty'. Did you mean: 'empty'?
in compat.py you are importing the Class
Queuefrom the moduleQueuein
python-logging-rabbitmq/python_logging_rabbitmq/handlers_oneway.py
Line 169 in 223a4d6
you are looking for the exception
Queue.Emptyfrom the moduleQueuenot the ClassQueueThis will give the exception
AttributeError: type object 'Queue' has no attribute 'Empty'. Did you mean: 'empty'?