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
This commit is contained in:
John Spray 2011-07-28 16:07:32 +01:00 committed by Ask Solem
parent 21b8faa1a0
commit 9750376f19
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
try:
import ctypes
except ImportError:
except:
ctypes = None # noqa