Skip to content

Commit

Permalink
Merge pull request #247 from gbd-consult/bug/201_rework_try_block
Browse files Browse the repository at this point in the history
Bug/201 rework try block
  • Loading branch information
Guts authored Oct 10, 2022
2 parents 1035973 + a922660 commit 79c2ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gml_application_schema_toolbox/core/load_gmlas_in_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def import_in_qgis(gmlas_uri: str, provider: str, schema: Union[str, None] = Non
}
sql = f"select o.layer_name, o.layer_xpath, o.layer_category, o.layer_pkid_name, o.layer_parent_pkid_name, g.f_geometry_column, g.srid from {schema_s}_ogr_layers_metadata o left join geometry_columns g on g.f_table_name = o.layer_name"
PlgLogger.log(message=f"DEBUG Get list of layers with query : {sql}", log_level=4)

result = []
try:
result = conn.executeSql(sql)
PlgLogger.log(message=f"DEBUG List of layers : {result}", log_level=4)
Expand Down

0 comments on commit 79c2ba8

Please sign in to comment.