From d1609b97e4b2f6a34cfa6756a856317b35196603 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 9 Apr 2014 20:10:07 +0200 Subject: Fix #2497/#2498 (/theme should return an error when loading fails) It was actually doing that for old python version but not recent onces --- src/theming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 4a578ca7..8576a2a0 100644 --- a/src/theming.py +++ b/src/theming.py @@ -491,7 +491,7 @@ def reload_theme(): else: loader = finder.find_module(theme_name, load_path) if not loader: - return + return 'Failed to load the theme %s' % theme_name new_theme = loader.load_module() except Exception as e: log.error('Failed to load the theme %s', theme_name, exc_info=True) -- cgit v1.2.3