Fix config error if commands section is not found
1 files changed, 3 insertions(+), 2 deletions(-) M src/atomizer_config.py
M src/atomizer_config.py => src/atomizer_config.py +3 -2
@@ 13,8 13,9 @@ def get_entry_commands(commands_file): config = configparser.ConfigParser(interpolation=None) config.read(commands_file) commands = {} for command in config['commands']: commands[command] = config['commands'][command].strip('"') if "commands" in config: for command in config['commands']: commands[command] = config['commands'][command].strip('"') return commands def parse_and_execute_entry_command(cmd, entry, fg=False):