mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +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
|
||||
|
||||
if IS_WIN:
|
||||
from win32file import ReadFile, WriteFile
|
||||
from win32pipe import PeekNamedPipe
|
||||
try:
|
||||
from win32file import ReadFile, WriteFile
|
||||
from win32pipe import PeekNamedPipe
|
||||
except ImportError:
|
||||
pass
|
||||
import msvcrt
|
||||
else:
|
||||
import select
|
||||
|
|
Loading…
Reference in New Issue
Block a user