Skip to content

Commit 24e8366

Browse files
committed
Don't attempt to parse empty datasource
1 parent 000f28a commit 24e8366

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config_generator/qgs_reader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ def __generate_edit_form(self, project, qgs_dir, map_prefix, shortnames, maplaye
780780
def __parse_datasource(self, datasource):
781781
""" Parse a QGS datasource URI string. """
782782

783+
if not datasource:
784+
return {}
785+
783786
result = {}
784787

785788
# sql= is placed at end of datasource string, and can contain spaces even if it is not quoted (hurray)

0 commit comments

Comments
 (0)