mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-29 04:17:24 +08:00
Fixes CI/CD errors
This commit is contained in:
+10
-8
@@ -61,10 +61,11 @@ def cachedmethod(f):
|
||||
key = args
|
||||
|
||||
with lock:
|
||||
try:
|
||||
return cache[key]
|
||||
except KeyError: # Note: single lookup, as an entry can get evicted in between (unlocked on Python 3)
|
||||
pass
|
||||
if key in cache:
|
||||
try:
|
||||
return cache[key]
|
||||
except KeyError: # Note: evicted in between (unlocked on Python 3)
|
||||
pass
|
||||
|
||||
except TypeError:
|
||||
# Note: fallback (slow-path) for unhashable arguments
|
||||
@@ -75,10 +76,11 @@ def cachedmethod(f):
|
||||
key = (_FROZEN_KEY_MARKER, _freeze(args))
|
||||
|
||||
with lock:
|
||||
try:
|
||||
return cache[key]
|
||||
except KeyError:
|
||||
pass
|
||||
if key in cache:
|
||||
try:
|
||||
return cache[key]
|
||||
except KeyError:
|
||||
pass
|
||||
except TypeError:
|
||||
# Note: genuinely uncacheable arguments; skip caching altogether
|
||||
return f(*args, **kwargs)
|
||||
|
||||
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.10.26"
|
||||
VERSION = "1.10.10.27"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
||||
Reference in New Issue
Block a user