This commit is contained in:
Miroslav Stampar
2016-10-24 23:33:49 +02:00
parent 25c34c7728
commit 6f343080e8
3 changed files with 4 additions and 4 deletions

View File

@@ -199,7 +199,7 @@ try:
magic_compile.restype = c_int
magic_compile.argtypes = [magic_t, c_char_p]
except ImportError:
except (ImportError, OSError):
from_file = from_buffer = lambda *args, **kwargs: "unknown"
MAGIC_NONE = 0x000000 # No flags