diff options
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 815b059f..25188f81 100644 --- a/src/theming.py +++ b/src/theming.py @@ -278,8 +278,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__': |