Skip to content

Commit f8a42cf

Browse files
committed
Fixes CI/CD errors
1 parent 81d17b1 commit f8a42cf

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎lib/core/decorators.py‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ def _f(*args, **kwargs):
6161
key = args
6262

6363
with lock:
64-
try:
65-
return cache[key]
66-
except KeyError: # Note: single lookup, as an entry can get evicted in between (unlocked on Python 3)
67-
pass
64+
if key in cache:
65+
try:
66+
return cache[key]
67+
except KeyError: # Note: evicted in between (unlocked on Python 3)
68+
pass
6869

6970
except TypeError:
7071
# Note: fallback (slow-path) for unhashable arguments
@@ -75,10 +76,11 @@ def _f(*args, **kwargs):
7576
key = (_FROZEN_KEY_MARKER, _freeze(args))
7677

7778
with lock:
78-
try:
79-
return cache[key]
80-
except KeyError:
81-
pass
79+
if key in cache:
80+
try:
81+
return cache[key]
82+
except KeyError:
83+
pass
8284
except TypeError:
8385
# Note: genuinely uncacheable arguments; skip caching altogether
8486
return f(*args, **kwargs)

‎lib/core/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.10.10.26"
22+
VERSION = "1.10.10.27"
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)