File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from lib .core .defaults import defaults
2121from lib .core .enums import MKSTEMP_PREFIX
2222from lib .core .exception import SqlmapMissingDependence
23+ from lib .core .exception import SqlmapSystemException
2324from lib .core .settings import DEV_EMAIL_ADDRESS
2425from lib .core .settings import IS_WIN
2526from lib .core .settings import ISSUES_PAGE
@@ -72,7 +73,12 @@ def _on_tab_changed(self, event):
7273 tab = event .widget .nametowidget (event .widget .select ())
7374 event .widget .configure (height = tab .winfo_reqheight ())
7475
75- window = _tkinter .Tk ()
76+ try :
77+ window = _tkinter .Tk ()
78+ except Exception as ex :
79+ errMsg = "unable to create GUI window ('%s')" % getSafeExString (ex )
80+ raise SqlmapSystemException (errMsg )
81+
7682 window .title (VERSION_STRING )
7783
7884 # Reference: https://www.holadevs.com/pregunta/64750/change-selected-tab-color-in-ttknotebook
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.5.3.4 "
21+ VERSION = "1.5.3.5 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments