diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-01-24 17:45:17 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:05:37 +0100 |
commit | d6989db025b2f391c2d309ae9a4c4c8c094e764c (patch) | |
tree | 3a32f8c8ce9aa47688298308de8c70649823a9d1 /src/theming.py | |
parent | fc6db466f518b8b54f3ce23695d63c77b09e3891 (diff) | |
download | poezio-d6989db025b2f391c2d309ae9a4c4c8c094e764c.tar.gz poezio-d6989db025b2f391c2d309ae9a4c4c8c094e764c.tar.bz2 poezio-d6989db025b2f391c2d309ae9a4c4c8c094e764c.tar.xz poezio-d6989db025b2f391c2d309ae9a4c4c8c094e764c.zip |
Make /theme error more descriptive
Diffstat (limited to 'src/theming.py')
-rw-r--r-- | src/theming.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theming.py b/src/theming.py index ff2ff74e..96c47337 100644 --- a/src/theming.py +++ b/src/theming.py @@ -271,8 +271,8 @@ def reload_theme(): file_path = os.path.join(themes_dir, theme_name)+'.py' log.debug('Theme file to load: %s' %(file_path,)) new_theme = imp.load_source('theme', os.path.join(themes_dir, theme_name)+'.py') - except: - return 'Theme not found' + except Exception as e: + return 'Failed to load theme: %s' % (e,) theme = new_theme.theme if __name__ == '__main__': |