Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Really fix #251

Python doesn't have lazy semantics :-)
  • Loading branch information...
commit b7db91f7090cf91c5fcc4d5657071b4d906e96ab 1 parent 6c79de0
Tycho Andersen tych0 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 libqtile/confreader.py
5 libqtile/confreader.py
View
@@ -81,5 +81,8 @@ def __init__(self, fname=None, is_restart=False):
# testing.
from resources import default_config
for option in config_options:
- v = getattr(config, option, getattr(default_config, option))
+ if hasattr(config, option):
+ v = getattr(config, option)
+ else:
+ v = getattr(default_config, option)
setattr(self, option, v)
Please sign in to comment.
Something went wrong with that request. Please try again.