From c99abb1a7b6b0fe75f8bc1b7558e0e13afb283c5 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 21 Mar 2021 14:56:26 +0100 Subject: Debugging tainted namespace on profile modules. --- archinstall/lib/profiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index e22a3587..724b92e7 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -134,6 +134,9 @@ class Script(): sys.modules[namespace] = imported print(f"Imported {self} into sys.modules with namespace {namespace}.") + + if '.py' not in namespace: + raise KeyError("Debugging") return self def execute(self): -- cgit v1.2.3-70-g09d2