mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes #3142
This commit is contained in:
parent
b93284530e
commit
a97fd1dede
3 changed files with 7 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue