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

Python Error using MB 7.2.1 #731

Closed
KTAI-GIS opened this issue Sep 19, 2022 · 0 comments · Fixed by #732
Closed

Python Error using MB 7.2.1 #731

KTAI-GIS opened this issue Sep 19, 2022 · 0 comments · Fixed by #732
Labels

Comments

@KTAI-GIS
Copy link

Hi there
Sometimes I get an Error in QGIS 3.22.0 from the Modelbaker Plugin 7.2.1
It's a normal QGIS Project without use of Modelbaker functionality.
The error appears when I start the QGIS Project.

2022-09-19T09:46:01 WARNING Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.

The Python Error Code looks like that:
2022-09-19T09:46:01 WARNING Traceback (most recent call last): File "C:\Users/username/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QgisModelBaker\gui\validate.py", line 242, in set_current_layer self._refresh_schemadata_models() File "C:\Users/username/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QgisModelBaker\gui\validate.py", line 261, in _refresh_schemadata_models self.schema_validations[ File "C:\Users/username/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QgisModelBaker\utils\gui_utils.py", line 859, in refresh_model if db_connector.db_or_schema_exists() and db_connector.metadata_exists(): AttributeError: 'NoneType' object has no attribute 'db_or_schema_exists'

signedav added a commit that referenced this issue Sep 19, 2022
…ll be refreshed listing no models / datasets etc. This fixes  #731
@signedav signedav added the bug label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants