You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by pe...@apache.org on 2013/01/28 07:27:04 UTC
svn commit: r1439270 -
/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Author: peter
Date: Mon Jan 28 06:27:04 2013
New Revision: 1439270
URL: http://svn.apache.org/viewvc?rev=1439270&view=rev
Log:
Request postprocessing needs to take place for error pages (#330)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1439270&r1=1439269&r2=1439270&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jan 28 06:27:04 2013
@@ -16,6 +16,8 @@
# specific language governing permissions and limitations
# under the License.
+import sys
+
from genshi.builder import tag
from genshi.core import TEXT
from genshi.filters.transform import Transformer
@@ -214,7 +216,7 @@ class BloodhoundTheme(ThemeBase):
"""Post process request filter.
Removes all trac provided css if required"""
- if template is None and data is None:
+ if template is None and data is None and sys.exc_info() == (None, None, None):
return template, data, content_type
def is_active_theme():