src/eric7/Preferences/__init__.py

branch
eric7
changeset 10206
d6921563be6c
parent 10201
5beaa25bdfbe
child 10237
17ab17a3e6b3
diff -r 6889b666ddef -r d6921563be6c src/eric7/Preferences/__init__.py
--- a/src/eric7/Preferences/__init__.py	Mon Sep 11 17:58:47 2023 +0200
+++ b/src/eric7/Preferences/__init__.py	Tue Sep 12 16:59:22 2023 +0200
@@ -1583,6 +1583,7 @@
             "https://raw.githubusercontent.com/pyupio/safety-db/master/data/"
         ),
         "VulnerabilityDbCacheValidity": 60 * 60 * 6,  # 6 hours
+        "VulnerabilityCheckEnabled": True,
     }
 
     # defaults for MicroPython
@@ -3801,7 +3802,7 @@
     @param key the key of the value to get
     @return the requested pip value
     """
-    if key in ("ExcludeCondaEnvironments",):
+    if key in ("ExcludeCondaEnvironments", "VulnerabilityCheckEnabled"):
         return toBool(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key]))
     elif key in ("VulnerabilityDbCacheValidity",):
         return int(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key]))

eric ide

mercurial