catch rewrelic import

This commit is contained in:
Kenneth Reitz
2012-06-09 10:55:23 -04:00
parent 9594b23efc
commit 0cbf9c32bd
+7 -5
View File
@@ -19,6 +19,13 @@ from .helpers import get_headers, status_code, get_dict, check_basic_auth, check
from .utils import weighted_choice
from .structures import CaseInsensitiveDict
try:
import newrelic.agent
newrelic.agent.initialize()
except ImportError:
pass
ENV_COOKIES = (
'_gauges_unique',
'_gauges_unique_year',
@@ -37,11 +44,6 @@ app = Flask(__name__)
# Routes
# ------
@app.errorhandler(500)
def page_not_found(e):
return ':(', 200
@app.route('/')
def view_landing_page():
"""Generates Landing Page."""