Update regarding #3553

This commit is contained in:
Miroslav Stampar
2019-04-15 15:15:12 +02:00
parent 9958d77572
commit faf154d2b3
3 changed files with 22 additions and 2 deletions

View File

@@ -3418,6 +3418,16 @@ def checkIntegrity():
return retVal
def getDaysFromLastUpdate():
"""
Get total number of days from last update
"""
if not paths:
return
return int(time.time() - os.path.getmtime(paths.SQLMAP_SETTINGS_PATH)) // (3600 * 24)
def unhandledExceptionMessage():
"""
Returns detailed message about occurred unhandled exception