diff --git a/slixfeed/config.py b/slixfeed/config.py index 6b38be4..4bd3016 100644 --- a/slixfeed/config.py +++ b/slixfeed/config.py @@ -61,10 +61,19 @@ def get_value(filename, section, keys): if isinstance(keys, list): result = [] for key in keys: - result.extend([section_res[key]]) + try: + value = section_res[key] + except: + print("Missing key:", key) + value = '' + result.extend([value]) elif isinstance(keys, str): key = keys - result = section_res[key] + try: + result = section_res[key] + except: + print("Missing key:", key) + result = '' return result