Skip to content

Commit

Permalink
Deal with situation when storage is provided
Browse files Browse the repository at this point in the history
* default must be {}, not None
  • Loading branch information
hgiesel committed Feb 5, 2020
1 parent a84a2ba commit bf4b97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def deserialize_meta_script(model_name, script_data, access_func = safenav_meta_
result = script_data if isinstance(script_data, SMMetaScript) else make_meta_script(
access_func([script_data], ['tag']),
access_func([script_data], ['id']),
make_script_storage(**access_func([script_data], ['storage'])),
make_script_storage(**access_func([script_data], ['storage'], default = {})),
)

return result if has_interface(result.tag) and meta_script_is_registered(
Expand Down

0 comments on commit bf4b97f

Please sign in to comment.