Minor fix in shim.py when  custom fields are added to config in plugin_init()
@@ -82,7 +82,8 @@ def _revised_config_for_json_item(config):
# them to str, which is the required format for configuration items.
revised_config_handle = {}
for k, v in config.items():
- if v['type'] == 'JSON':
+ if isinstance(v, dict):
+ if 'type' in v and v['type'] == 'JSON':
if isinstance(v['default'], dict):
v['default'] = json.dumps(v['default'])
if isinstance(v['value'], dict):
