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.
1 parent 25b2375 commit f5df805Copy full SHA for f5df805
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