mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-09 18:02:56 +01:00
Fixes #1195
This commit is contained in:
parent
25b23750e8
commit
f5df80527c
1 changed files with 4 additions and 1 deletions
5
thirdparty/magic/magic.py
vendored
5
thirdparty/magic/magic.py
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue