Skip to content

Commit 2fee109

Browse files
committed
fixed datatype in check
1 parent 963bd04 commit 2fee109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qgist/workbench/dtype_fsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def save_workbench(self, name, mainwindow):
204204

205205
def import_workbench(self, workbench_dict, mainwindow):
206206

207-
if not isinstance(workbench_dict, str):
207+
if not isinstance(workbench_dict, dict):
208208
raise QgistTypeError(translate('global', '"workbench_dict" must be dict. (dtype_fsm import)'))
209209
if 'name' not in workbench_dict.keys():
210210
raise QgistValueError(translate('global', '"workbench_dict" does not contain a name. (dtype_fsm import)'))

0 commit comments

Comments
 (0)