Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/lib/profiles.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index ef7bba00..8284bf40 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -135,11 +135,14 @@ class Script():
imported = importlib.util.module_from_spec(self.spec)
sys.modules[self.namespace] = imported
- print(f"Imported {self} into sys.modules with namespace {self.namespace}.")
+ print(f"Imported {self} into sys.modules with namespace {self.namespace}")
+
+ if '.py' not in self.namespace:
+ raise KeyError(f"Debugging: {self.namespace}, {reset_namespace}, {self}")
if reset_namespace:
self.namespace = original_namespace
-
+
return self
def execute(self):