From 7d2d69ba0f583d594db90a402de75bbd9c39685f Mon Sep 17 00:00:00 2001 From: ChristopheSeux Date: Mon, 4 Mar 2024 09:55:46 +0100 Subject: [PATCH] Fix pack picker if missing --- core/picker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')