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

Skip to content

Commit 5037e43

Browse files
committed
Fixes #3550
1 parent e64cc86 commit 5037e43

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

lib/core/revision.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def getRevisionNumber():
4444
break
4545

4646
if not retVal:
47-
process = subprocess.Popen("git rev-parse --verify HEAD", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
48-
stdout, _ = process.communicate()
49-
match = re.search(r"(?i)[0-9a-f]{32}", stdout or "")
50-
retVal = match.group(0) if match else None
47+
try:
48+
process = subprocess.Popen("git rev-parse --verify HEAD", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
49+
stdout, _ = process.communicate()
50+
match = re.search(r"(?i)[0-9a-f]{32}", stdout or "")
51+
retVal = match.group(0) if match else None
52+
except:
53+
pass
5154

5255
return retVal[:7] if retVal else None

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

0 commit comments

Comments
 (0)