Skip to content

Commit 568ee46

Browse files
committed
Minor patch (gui)
1 parent c3a6b71 commit 568ee46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlmap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,12 @@ def main():
385385
logger.critical(errMsg)
386386
raise SystemExit
387387

388+
elif all(_ in excMsg for _ in ("window = tkinter.Tk()",)):
389+
errMsg = "there has been a problem in initialization of GUI interface "
390+
errMsg += "('%s')" % excMsg.strip().split('\n')[-1]
391+
logger.critical(errMsg)
392+
raise SystemExit
393+
388394
elif "bad marshal data (unknown type code)" in excMsg:
389395
match = re.search(r"\s*(.+)\s+ValueError", excMsg)
390396
errMsg = "one of your .pyc files are corrupted%s" % (" ('%s')" % match.group(1) if match else "")

0 commit comments

Comments
 (0)