Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1599b5e

Browse files
committed
Fix for an Issue #351
1 parent b0a13be commit 1599b5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thirdparty/magic/magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def magic_load(cookie, filename):
195195
magic_compile.argtypes = [magic_t, c_char_p]
196196

197197
except ImportError:
198-
pass
198+
from_file = from_buffer = lambda *args, **kwargs: "unknown"
199199

200200
MAGIC_NONE = 0x000000 # No flags
201201
MAGIC_DEBUG = 0x000001 # Turn on debugging

0 commit comments

Comments
 (0)