diff options
author | Matthieu Coudron <mattator@gmail.com> | 2018-05-09 15:21:01 +0900 |
---|---|---|
committer | Matthieu Coudron <mattator@gmail.com> | 2018-05-14 14:49:33 +0900 |
commit | 9d2f254ffb38e4c71feae19de514eabaaf5a6d7f (patch) | |
tree | 9d3c9dabd10cba4673e08c64bf0189bb295b5dbd /alot/settings | |
parent | 08438d56ef695883f8beb8c7515b261015c676f0 (diff) |
better message on hook loading failure
The typical current message looks like:
unable to load hooks file:/home/teto/.config/alot/hooks.py
without telling why python couldn't load the hook.
This commit prints the exception, thus helping users to solve the issue
(in my case encoding + wrong imports).
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 24d5c989..9cd89256 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -92,7 +92,7 @@ class SettingsManager(object): try: self.hooks = imp.load_source('hooks', hooks_path) except: - logging.debug('unable to load hooks file:%s', hooks_path) + logging.exception('unable to load hooks file:%s', hooks_path) if 'bindings' in newconfig: newbindings = newconfig['bindings'] if isinstance(newbindings, Section): |