Skip to content

Commit

Permalink
Merge pull request #1077 from opengisch/better_worker_err_message
Browse files Browse the repository at this point in the history
[refactor] Add error message for the `FileNotFoundError` instead of just showing the filename
  • Loading branch information
suricactus authored Dec 17, 2024
2 parents 9554355 + 50ac080 commit c439768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-qgis/qfc_worker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def open_qgis_project(
logging.info(f'Loading QGIS project "{project_filename}"…')

if not Path(project_filename).exists():
raise FileNotFoundError(project_filename)
raise FileNotFoundError(f"File not found: {project_filename}")

project = QgsProject.instance()

Expand Down

0 comments on commit c439768

Please sign in to comment.