From 737973f4fccc419fdfaffcd9f5a9dcbf3687ebdb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 13 May 2017 14:10:00 -0500 Subject: [PATCH] Remove unused 'fake_error' view has been superseded by CommonView.bogus_error --- tailbone/views/core.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tailbone/views/core.py b/tailbone/views/core.py index e30d31f2..1bcdc417 100644 --- a/tailbone/views/core.py +++ b/tailbone/views/core.py @@ -98,16 +98,3 @@ class View(object): filename = os.path.basename(path).encode('ascii', 'replace') response.headers[b'Content-Disposition'] = b'attachment; filename="{}"'.format(filename) return response - - -def fake_error(request): - """ - View which raises a fake error, to test exception handling. - """ - raise Exception("Fake error, to test exception handling.") - - -def includeme(config): - config.add_route('fake_error', '/fake-error') - config.add_view(fake_error, route_name='fake_error', - permission='admin')