From dc8d21a3c9726459c91f5c290a52eb4acedb4129 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Sat, 7 Mar 2015 18:45:20 +0100 Subject: [PATCH] Accept empty lines in setup files --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr.py b/autorandr.py index b288e41..33e3b2f 100755 --- a/autorandr.py +++ b/autorandr.py @@ -351,7 +351,7 @@ def load_profiles(profile_path): if not os.path.isfile(config_name) or not os.path.isfile(setup_name): continue - edids = dict([ x.strip().split() for x in open(setup_name).readlines() ]) + edids = dict([ x.strip().split() for x in open(setup_name).readlines() if x.strip() ]) config = {} buffer = [] -- 2.39.2