mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-21 14:02:49 +03:00
avoid exiting with a traceback for missing dependency, handle properly at some point
This commit is contained in:
parent
7f4ce4afbb
commit
58a60562ac
|
@ -15,8 +15,11 @@ from lib.core.common import dataToStdout
|
||||||
from lib.core.settings import IS_WIN
|
from lib.core.settings import IS_WIN
|
||||||
|
|
||||||
if IS_WIN:
|
if IS_WIN:
|
||||||
from win32file import ReadFile, WriteFile
|
try:
|
||||||
from win32pipe import PeekNamedPipe
|
from win32file import ReadFile, WriteFile
|
||||||
|
from win32pipe import PeekNamedPipe
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
import msvcrt
|
import msvcrt
|
||||||
else:
|
else:
|
||||||
import select
|
import select
|
||||||
|
|
Loading…
Reference in New Issue
Block a user