Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-21 14:56:26 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-21 14:56:26 +0100
commitc99abb1a7b6b0fe75f8bc1b7558e0e13afb283c5 (patch)
tree9c2aa17d6991cb74fe7fd55e0f70dd0d3a7896f1 /archinstall/lib/profiles.py
parentec9059c039c3d47dc17e457cdc8a42549de87d5b (diff)
Debugging tainted namespace on profile modules.
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py3
1 files changed, 3 insertions, 0 deletions
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):