From e2a2198fee577490fe3420bec0132429e9e50d25 Mon Sep 17 00:00:00 2001 From: Peter Eisenmann Date: Sat, 26 Aug 2023 14:45:41 +0200 Subject: [PATCH] choices provider: fix multi-row names --- src/provider/choices_provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/provider/choices_provider.py b/src/provider/choices_provider.py index c16b65e..b39eb57 100644 --- a/src/provider/choices_provider.py +++ b/src/provider/choices_provider.py @@ -43,8 +43,8 @@ def handle_choice(choice): if not 'option' in option: print(f'Option for {name} not correctly configured: {option}') continue - name = option['name'] if 'name' in option else option['option'] - options.append(Option(name, option['option'])) + option_name = option['name'] if 'name' in option else option['option'] + options.append(Option(option_name, option['option'])) if len(options) == 0: print(f'No valid options found for {name}')