]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
Merge branch 'rate' into license
[deb_pkgs/autorandr.git] / autorandr.py
index fd18b15e42360b1ff5060682cab54657b04c656e..1225491d9fc492923159a817d7b026ee142a11bc 100755 (executable)
@@ -322,8 +322,8 @@ def load_profiles(profile_path):
             else:
                 buffer.append(line)
 
-        for output_name, output in config.items():
-            if "off" in output.options:
+        for output_name in list(config.keys()):
+            if "off" in config[output_name].options:
                 del config[output_name]
 
         profiles[profile] = config