Switch to side-by-side view
--- a/Allura/allura/lib/custom_middleware.py +++ b/Allura/allura/lib/custom_middleware.py @@ -186,6 +186,6 @@ ] def before_logging(self, stat_record): - if c.app and c.app.config: + if hasattr(c, "app") and hasattr(c.app, "config"): stat_record.add('request_category', c.app.config.tool_name.lower()) return stat_record