Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fd5fe7

Browse files
committed
Fixes #3677
1 parent c83ccfc commit 9fd5fe7

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.105"
21+
VERSION = "1.3.5.106"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/update.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import re
1111
import shutil
1212
import subprocess
13-
import sys
1413
import time
1514
import zipfile
1615

@@ -29,7 +28,6 @@
2928
from lib.core.settings import IS_WIN
3029
from lib.core.settings import VERSION
3130
from lib.core.settings import ZIPBALL_PAGE
32-
from lib.core.settings import UNICODE_ENCODING
3331
from thirdparty.six.moves import urllib as _urllib
3432

3533
def update():
@@ -108,11 +106,11 @@ def update():
108106
dataToStdout("\r[%s] [INFO] update in progress" % time.strftime("%X"))
109107

110108
try:
111-
process = subprocess.Popen("git checkout . && git pull %s HEAD" % GIT_REPOSITORY, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=paths.SQLMAP_ROOT_PATH.encode(sys.getfilesystemencoding() or UNICODE_ENCODING))
109+
process = subprocess.Popen("git checkout . && git pull %s HEAD" % GIT_REPOSITORY, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=paths.SQLMAP_ROOT_PATH)
112110
pollProcess(process, True)
113111
output, _ = process.communicate()
114112
success = not process.returncode
115-
except (IOError, OSError) as ex:
113+
except Exception as ex:
116114
success = False
117115
output = getSafeExString(ex)
118116
finally:

0 commit comments

Comments
 (0)