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

Error with adding content / input validation (Windows) #23

Open
myles28 opened this issue Oct 28, 2022 · 0 comments
Open

Error with adding content / input validation (Windows) #23

myles28 opened this issue Oct 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@myles28
Copy link

myles28 commented Oct 28, 2022

When adding features to query with the "Select Content" feature in the plugin. I am able to select a feature of interest and add it to the query without completely filling it in.

image
(For example that can be added to the query)

When you try and run a query like this you will get a python error similar to ->

WARNING Traceback (most recent call last): File "C:\Users/Myles/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\kwg_geoenrichment\kwg_geoenrichment.py", line 734, in handleRun results.append(self.enrichmentObjBuffer[i].getResults()) File "C:\Users/Myles/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\kwg_geoenrichment\kwg_plugin_enrichment_dialog.py", line 401, in getResults predicate = self.labelPropDict[self.tableWidget.cellWidget(it, 1).currentText()] KeyError: '--- SELECT ---'

Looks like it just adds in the default selection to the query (---- SELECT -----) in this case.

Looks like it just needs some input validation that you can only add in complete requests

This is running on Windows, with the most recent plugin version (v0.4)

@myles28 myles28 added the bug Something isn't working label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant