Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wmts] Check that we've got a file path before attempting to parse it #84

Merged
merged 2 commits into from
May 22, 2024

Conversation

gacarrillor
Copy link
Contributor

Fix #51

Note:
I've been unable to replicate the issue.
QGIS has specific tests that verify that a filePath() is always set along with a QgsFetchedContent.ContentStatus.Finished status. See https://github.com/qgis/QGIS/blob/166f326b3324d555af80d1b1b3a9c23f028955b5/tests/src/python/test_qgsnetworkcontentfetcherregistry.py#L81

However, I've added a double check here (QGIS seems to do the same) to avoid attempting to parse the file if filePath() is empty, so we won't never get the error.

@3nids 3nids merged commit b9d7958 into opengisch:master May 22, 2024
2 checks passed
@gacarrillor gacarrillor deleted the fix_51 branch May 22, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FileNotFoundError when opening QGIS
2 participants