Skip to content

Commit bf138e8

Browse files
committed
Fixing CI/CD errors
1 parent d2bcb39 commit bf138e8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import collections
1212
import functools
1313
import glob
14+
import importlib
1415
import inspect
1516
import json
1617
import logging
@@ -890,6 +891,7 @@ def _setTamperingFunctions():
890891
sys.path.insert(0, dirname)
891892

892893
try:
894+
importlib.invalidate_caches() # Note: a script just written into an already-scanned dir is invisible to a cached FileFinder (e.g. on Windows, coarse mtime)
893895
module = __import__(safeFilepathEncode(filename[:-3]))
894896
except Exception as ex:
895897
raise SqlmapSyntaxException("cannot import tamper module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex)))
@@ -998,6 +1000,7 @@ def _setPreprocessFunctions():
9981000
sys.path.insert(0, dirname)
9991001

10001002
try:
1003+
importlib.invalidate_caches() # Note: a script just written into an already-scanned dir is invisible to a cached FileFinder (e.g. on Windows, coarse mtime)
10011004
module = __import__(safeFilepathEncode(filename[:-3]))
10021005
except Exception as ex:
10031006
raise SqlmapSyntaxException("cannot import preprocess module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex)))
@@ -1081,6 +1084,7 @@ def _setPostprocessFunctions():
10811084
sys.path.insert(0, dirname)
10821085

10831086
try:
1087+
importlib.invalidate_caches() # Note: a script just written into an already-scanned dir is invisible to a cached FileFinder (e.g. on Windows, coarse mtime)
10841088
module = __import__(safeFilepathEncode(filename[:-3]))
10851089
except Exception as ex:
10861090
raise SqlmapSyntaxException("cannot import postprocess module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex)))

lib/core/settings.py

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

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.190"
23+
VERSION = "1.10.7.191"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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)