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

Skip to content

Commit 75478c1

Browse files
committed
Fixes #1868
1 parent ad0ca69 commit 75478c1

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/core/decorators.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ def cachedmethod(f, cache={}):
1515
def _(*args, **kwargs):
1616
try:
1717
key = (f, tuple(args), frozenset(kwargs.items()))
18+
if key not in cache:
19+
cache[key] = f(*args, **kwargs)
1820
except:
1921
key = "".join(str(_) for _ in (f, args, kwargs))
20-
if key not in cache:
21-
cache[key] = f(*args, **kwargs)
22+
if key not in cache:
23+
cache[key] = f(*args, **kwargs)
24+
2225
return cache[key]
2326

2427
return _

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.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.23"
22+
VERSION = "1.0.5.24"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)