mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Fixes #1195
This commit is contained in:
parent
25b23750e8
commit
f5df80527c
3
thirdparty/magic/magic.py
vendored
3
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
|
# This is necessary because find_library returns None if it doesn't find the library
|
||||||
if dll:
|
if dll:
|
||||||
|
try:
|
||||||
libmagic = ctypes.CDLL(dll)
|
libmagic = ctypes.CDLL(dll)
|
||||||
|
except WindowsError:
|
||||||
|
pass
|
||||||
|
|
||||||
if not libmagic or not libmagic._name:
|
if not libmagic or not libmagic._name:
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in New Issue
Block a user