Browse Source

Fix crash when loading multiple configs

SoniEx2 2 months ago
parent
commit
7a2b72bc8c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ganarchy.py

+ 2
- 1
ganarchy.py View File

@@ -447,7 +447,8 @@ class Config:
447 447
         self.blocked_domain_suffixes = tuple(self.blocked_domain_suffixes) # MUST be tuple
448 448
         # TODO re.compile("(^" + "|^".join(map(re.escape, domains)) + "|" + "|".join(map(re.escape, suffixes) + ")$")
449 449
         if base:
450
-            self._update_projects(base.projects, sanitize=False) # already sanitized
450
+            # FIXME is remove=remove the right thing to do?
451
+            self._update_projects(base.projects, remove=remove, sanitize=False) # already sanitized
451 452
         projects = config_data.get('projects', {})
452 453
         self._update_projects(projects, remove=remove)
453 454
 

Loading…
Cancel
Save