Changes between Initial Version and Version 1 of Ticket #12385, comment 6
- Timestamp:
- Mar 18, 2016, 7:35:32 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12385, comment 6
initial v1 3 3 {{{#!diff 4 4 diff --git a/trac/web/main.py b/trac/web/main.py 5 index d30956db8.. fab7daadf1006445 index d30956db8..cbca8b459 100644 6 6 --- a/trac/web/main.py 7 7 +++ b/trac/web/main.py 8 @@ -275, 6 +275,12@@ class RequestDispatcher(Component):8 @@ -275,25 +275,24 @@ class RequestDispatcher(Component): 9 9 self._post_process_request(req) 10 10 except RequestDone: 11 11 raise 12 - except Exception as e: 12 13 + except PermissionError as e: 13 14 + raise HTTPForbidden(e) … … 16 17 + except TracError as e: 17 18 + raise HTTPInternalError(e) 18 except Exception as e:19 + except Exception: 19 20 # post-process the request in case of errors 20 21 err = sys.exc_info() 21 @@ -282,18 +288,11 @@ class RequestDispatcher(Component):22 try: 22 23 self._post_process_request(req) 23 24 except RequestDone: