This commit is contained in:
Miroslav Stampar 2015-03-18 14:26:51 +01:00
parent 25b23750e8
commit f5df80527c

View File

@ -111,7 +111,10 @@ try:
# This is necessary because find_library returns None if it doesn't find the library
if dll:
libmagic = ctypes.CDLL(dll)
try:
libmagic = ctypes.CDLL(dll)
except WindowsError:
pass
if not libmagic or not libmagic._name:
import sys