From 9750376f19e791b1c0a8da8675c72a01e157e464 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 28 Jul 2011 16:07:32 +0100 Subject: [PATCH] Silence all exceptions from `import ctypes` to match behaviour of the standard Python uuid module, and avoid passing on MemoryError exceptions on SELinux-enabled systems. Closes #52. Closes #53 --- kombu/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/utils/__init__.py b/kombu/utils/__init__.py index 3652ec98..943b4814 100644 --- a/kombu/utils/__init__.py +++ b/kombu/utils/__init__.py @@ -5,7 +5,7 @@ from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random try: import ctypes -except ImportError: +except: ctypes = None # noqa