Skip to content

Commit

Permalink
Handles empty string dictionary arguments separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
pritchardn committed Apr 21, 2022
1 parent 40c4df2 commit 6dc317a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daliuge-engine/dlg/drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ def getmembers(object, predicate=None):
elif isinstance(obj, dlg_dict_param):
value = kwargs.get(attr_name, obj.default_value)
if isinstance(value, str):
value = ast.literal_eval(value)
if value == "":
value = {}
else:
value = ast.literal_eval(value)
if value is not None and not isinstance(value, dict):
raise Exception(
"dlg_dict_param {} is not a dict. It is a {}".format(
Expand Down

0 comments on commit 6dc317a

Please sign in to comment.