Skip to content

Commit

Permalink
Allow upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredkipe committed Dec 5, 2016
1 parent 8ca32b1 commit 0c755fc
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions newrelic/controllers/main.py
Expand Up @@ -24,13 +24,16 @@ def poll(self, channels, last, options=None):
newrelic.agent.ignore_transaction()
return super(BusController, self).poll(channels, last, options)

if tools.config['debug_mode']:
class TestErrors(http.Controller):
@http.route('/test_errors_404', auth='public')
def test_errors_404(self):
import werkzeug
return werkzeug.exceptions.NotFound('Successful test of 404')

@http.route('/test_errors_500', auth='public')
def test_errors_500(self):
raise ValueError
try:
if tools.config['debug_mode']:
class TestErrors(http.Controller):
@http.route('/test_errors_404', auth='public')
def test_errors_404(self):
import werkzeug
return werkzeug.exceptions.NotFound('Successful test of 404')

@http.route('/test_errors_500', auth='public')
def test_errors_500(self):
raise ValueError
except KeyError:
pass

0 comments on commit 0c755fc

Please sign in to comment.