From 246c987f72957be0f130dd0bf3352e6a197f6621 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 30 Jun 2014 02:12:58 -0400 Subject: [PATCH] Fix wrapping. --- app.fcgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.fcgi b/app.fcgi index b3b579e..a80f455 100755 --- a/app.fcgi +++ b/app.fcgi @@ -1,9 +1,10 @@ #! /data/project/copyvios/env/bin/python # -*- coding: utf-8 -*- -from time import asctime +from functools import wraps from logging import DEBUG from logging.handlers import TimedRotatingFileHandler +from time import asctime from flask import Flask, g, request from flask.ext.mako import MakoTemplates, render_template, TemplateError @@ -20,6 +21,7 @@ app.logger.addHandler(TimedRotatingFileHandler( app.logger.info(u"Flask server started " + asctime()) def debug_exceptions(func): + @wraps(func) def inner(*args, **kwargs): try: return func(*args, **kwargs)