Show More
@@ -65,11 +65,13 b' class OpsView(BaseAppView):' | |||||
65 | """ |
|
65 | """ | |
66 | Test exception handling and emails on errors |
|
66 | Test exception handling and emails on errors | |
67 | """ |
|
67 | """ | |
|
68 | ||||
68 | class TestException(Exception): |
|
69 | class TestException(Exception): | |
69 | pass |
|
70 | pass | |
70 |
|
71 | # add timeout so we add some sort of rate limiter | ||
|
72 | time.sleep(2) | |||
71 | msg = ('RhodeCode Enterprise test exception. ' |
|
73 | msg = ('RhodeCode Enterprise test exception. ' | |
72 |
' |
|
74 | 'Client:{}. Generation time: {}.'.format(self.request.user, time.time())) | |
73 | raise TestException(msg) |
|
75 | raise TestException(msg) | |
74 |
|
76 | |||
75 | @view_config( |
|
77 | @view_config( |
General Comments 0
You need to be logged in to leave comments.
Login now