Skip to content

Commit

Permalink
Warn about and ignore project files with spaces when scanning for pro…
Browse files Browse the repository at this point in the history
…jects
  • Loading branch information
manisandro committed Dec 16, 2024
1 parent 68c3deb commit abd8821
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config_generator/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ def search_qgs_projects(self, generator_config, themes_config):
elif item.is_file() and item.suffix == qgis_project_extension:
relpath = item.parent.relative_to(qgis_projects_base_dir)
wmspath = os.path.join(self.ows_prefix, relpath, item.stem)
if ' ' in wmspath:
self.logger.warning(f"The project file '{os.path.join(relpath, item.stem)}' contains spaces, it will be ignored")
continue

# Add to themes items
theme_item = OrderedDict()
Expand Down

0 comments on commit abd8821

Please sign in to comment.