This commit is contained in:
Miroslav Stampar
2018-06-09 22:59:08 +02:00
parent b93284530e
commit a97fd1dede
3 changed files with 7 additions and 4 deletions

View File

@@ -85,7 +85,10 @@ def update():
if not success:
logger.error("update could not be completed")
else:
os.chmod(os.path.join(directory, "sqlmap.py"), attrs)
try:
os.chmod(os.path.join(directory, "sqlmap.py"), attrs)
except OSError:
logger.warning("could not set the file attributes of '%s'" % os.path.join(directory, "sqlmap.py"))
else:
infoMsg = "updating sqlmap to the latest development revision from the "
infoMsg += "GitHub repository"