From 57dee852e43d965b5be4fa98a7dcad1f13d0593d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Sun, 26 Jul 2026 14:39:49 +0200 Subject: [PATCH] Some more fixing CI/CD errors --- lib/core/option.py | 6 +++--- lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 5e71ba888..4c92f0e26 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -891,7 +891,7 @@ def _setTamperingFunctions(): sys.path.insert(0, dirname) try: - 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) + getattr(importlib, "invalidate_caches", lambda: None)() # Note: py3.3+ only; a script just written into an already-scanned dir is invisible to a cached FileFinder (Windows coarse mtime) module = __import__(safeFilepathEncode(filename[:-3])) except Exception as ex: raise SqlmapSyntaxException("cannot import tamper module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex))) @@ -1000,7 +1000,7 @@ def _setPreprocessFunctions(): sys.path.insert(0, dirname) try: - 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) + getattr(importlib, "invalidate_caches", lambda: None)() # Note: py3.3+ only; a script just written into an already-scanned dir is invisible to a cached FileFinder (Windows coarse mtime) module = __import__(safeFilepathEncode(filename[:-3])) except Exception as ex: raise SqlmapSyntaxException("cannot import preprocess module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex))) @@ -1084,7 +1084,7 @@ def _setPostprocessFunctions(): sys.path.insert(0, dirname) try: - 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) + getattr(importlib, "invalidate_caches", lambda: None)() # Note: py3.3+ only; a script just written into an already-scanned dir is invisible to a cached FileFinder (Windows coarse mtime) module = __import__(safeFilepathEncode(filename[:-3])) except Exception as ex: raise SqlmapSyntaxException("cannot import postprocess module '%s' (%s)" % (getUnicode(filename[:-3]), getSafeExString(ex))) diff --git a/lib/core/settings.py b/lib/core/settings.py index d7e9d39ac..8ff5952fc 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.7.191" +VERSION = "1.10.7.192" 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)