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

Missing Path node causes confusing error #51

Closed
MattReimer opened this issue Sep 8, 2021 · 1 comment
Closed

Missing Path node causes confusing error #51

MattReimer opened this issue Sep 8, 2021 · 1 comment
Assignees
Labels
🐛 bug Something isn't working 🌐 Viewer QGIS
Milestone

Comments

@MattReimer
Copy link
Member

More business logic stuff. When the <Path> node can't be found it barfs out a bad error which is hard to decipher

2021-09-08T12:02:22     CRITICAL    Exception 'NoneType' object has no attribute 'text'
             
             Trace: Traceback (most recent call last):
              File "C:\Users/Matt/AppData/Roaming/QGIS/QGIS3\profiles\debug/python/plugins\qrave_toolbar_dev\src\classes\project.py", line 49, in load
              self._build_tree()
              File "C:\Users/Matt/AppData/Roaming/QGIS/QGIS3\profiles\debug/python/plugins\qrave_toolbar_dev\src\classes\project.py", line 139, in _build_tree
              self.qproject = self._recurse_tree()
              File "C:\Users/Matt/AppData/Roaming/QGIS/QGIS3\profiles\debug/python/plugins\qrave_toolbar_dev\src\classes\project.py", line 230, in _recurse_tree
              self._recurse_tree(child_node, new_proj_el, curr_item)
              File "C:\Users/Matt/AppData/Roaming/QGIS/QGIS3\profiles\debug/python/plugins\qrave_toolbar_dev\src\classes\project.py", line 268, in _recurse_tree
              layer_path = new_proj_el.find('Path')
             AttributeError: 'NoneType' object has no attribute 'text'
@MattReimer MattReimer self-assigned this Sep 8, 2021
@MattReimer MattReimer added the 🐛 bug Something isn't working label Sep 8, 2021
@MattReimer MattReimer added this to the QRAVE 0.6.1 HOTFIX milestone Sep 8, 2021
@MattReimer
Copy link
Member Author

Should be resolved. Test before release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌐 Viewer QGIS
Projects
None yet
Development

No branches or pull requests

2 participants