Browse Source

Fix crash when loading multiple configs

ganarchy
SoniEx2 5 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:
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)


Loading…
Cancel
Save