summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-08-11 10:44:32 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-08-11 10:44:32 +0100
commit43027514cc0fd94e815bfc5e53709da705a3ba3e (patch)
treecba56b2b94b3ebac7c2cb42a4e456556de015bfd
parent3778cfb93168c142ea80da803370d85124cc1e96 (diff)
fix error caused by leaving out threadline-foo parts..
..in theme files
-rw-r--r--alot/settings/theme.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/theme.py b/alot/settings/theme.py
index 78f86fc5..993c06b2 100644
--- a/alot/settings/theme.py
+++ b/alot/settings/theme.py
@@ -117,7 +117,7 @@ class Theme(object):
res['parts'] = match.get('parts') or default['parts']
for part in res['parts']:
defaultsec = default.get(part)
- partsec = match.get(part)
+ partsec = match.get(part) or {}
def fill(key, fallback=None):
pvalue = partsec.get(key) or defaultsec.get(key)