Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 865c385 + f5df805 commit 204ee1dCopy full SHA for 204ee1d
1 file changed
thirdparty/magic/magic.py
@@ -111,7 +111,10 @@ def from_buffer(buffer, mime=False):
111
112
# This is necessary because find_library returns None if it doesn't find the library
113
if dll:
114
- libmagic = ctypes.CDLL(dll)
+ try:
115
+ libmagic = ctypes.CDLL(dll)
116
+ except WindowsError:
117
+ pass
118
119
if not libmagic or not libmagic._name:
120
import sys
0 commit comments