summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-06-20 16:50:56 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-06-20 16:50:56 -0300
commit7a2b72bc8c97f8f8d9c328c96d9c8ea8c4eeabf4 (patch)
treed46bc05f25049358bd122fae7a27a4aab7e7509c
parent0e27c8baf4f99a8b0bdc52b0d03aba0e49ad95d0 (diff)
Fix crash when loading multiple configs
-rwxr-xr-xganarchy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ganarchy.py b/ganarchy.py
index c2e59f2..32add6f 100755
--- a/ganarchy.py
+++ b/ganarchy.py
@@ -447,7 +447,8 @@ class Config:
         self.blocked_domain_suffixes = tuple(self.blocked_domain_suffixes) # MUST be tuple
         # TODO re.compile("(^" + "|^".join(map(re.escape, domains)) + "|" + "|".join(map(re.escape, suffixes) + ")$")
         if base:
-            self._update_projects(base.projects, sanitize=False) # already sanitized
+            # FIXME is remove=remove the right thing to do?
+            self._update_projects(base.projects, remove=remove, sanitize=False) # already sanitized
         projects = config_data.get('projects', {})
         self._update_projects(projects, remove=remove)