summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorLukas Zapletal <lzap+git@redhat.com>2013-02-26 13:08:53 +0100
committerLukas Zapletal <lzap+git@redhat.com>2013-02-26 13:08:53 +0100
commite89a1e627a2829a20a8289bc38da5f0f4c8c20af (patch)
treeed49546ec9b23231f2985bcfae1bc28927a7b774 /alot/settings
parentdeb92500feddbd830c6821e5e34a9b27163abaf8 (diff)
correcting error message for theme
When there was a theme parse error, alot was producing incorrect exception: in read_config raise ConfigError((err_msg % str(themestring)) + e.message) TypeError: cannot concatenate 'str' and 'ParseError' objects
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index 1fa993b4..2b9adde9 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -98,7 +98,7 @@ class SettingsManager(object):
self._theme = Theme(theme_path)
except ConfigError as e:
err_msg = 'Theme file %s failed validation:\n'
- raise ConfigError((err_msg % themestring) + e.message)
+ raise ConfigError((err_msg % themestring) + str(e.message))
# if still no theme is set, resort to default
if self._theme is None: