From d6989db025b2f391c2d309ae9a4c4c8c094e764c Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 24 Jan 2012 17:45:17 +0100 Subject: Make /theme error more descriptive --- src/theming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/theming.py') 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__': -- cgit v1.2.3