diff options
Diffstat (limited to 'Lib/queue.py')
-rw-r--r-- | Lib/queue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py index ef07957..5bb0431 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -14,7 +14,7 @@ __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue', 'SimpleQueue' try: from _queue import Empty -except AttributeError: +except ImportError: class Empty(Exception): 'Exception raised by Queue.get(block=0)/get_nowait().' pass |