diff options
author | Lukas Zapletal <lzap+git@redhat.com> | 2013-02-26 13:08:53 +0100 |
---|---|---|
committer | Lukas Zapletal <lzap+git@redhat.com> | 2013-02-26 13:08:53 +0100 |
commit | e89a1e627a2829a20a8289bc38da5f0f4c8c20af (patch) | |
tree | ed49546ec9b23231f2985bcfae1bc28927a7b774 /alot/settings | |
parent | deb92500feddbd830c6821e5e34a9b27163abaf8 (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.py | 2 |
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: |