diff --git a/core/picker.py b/core/picker.py index d5630f1..1af7bef 100644 --- a/core/picker.py +++ b/core/picker.py @@ -736,8 +736,11 @@ def get_picker_path(rig, source, start=None): def pack_picker(rig, start=None): + if not 'rig_picker' in rig.data: + return + pickers = [] - for picker_source in rig.data.get('rig_picker', {}).get('sources', {}): + for picker_source in rig.data['rig_picker'].get('sources', []): picker_path = get_picker_path(rig, picker_source['source'], start) if not picker_path.exists(): print(f'{picker_path} not exists')