Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12385, comment 6


Ignore:
Timestamp:
Mar 18, 2016, 7:35:32 AM (8 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12385, comment 6

    initial v1  
    33{{{#!diff
    44diff --git a/trac/web/main.py b/trac/web/main.py
    5 index d30956db8..fab7daadf 100644
     5index d30956db8..cbca8b459 100644
    66--- a/trac/web/main.py
    77+++ b/trac/web/main.py
    8 @@ -275,6 +275,12 @@ class RequestDispatcher(Component):
     8@@ -275,25 +275,24 @@ class RequestDispatcher(Component):
    99                 self._post_process_request(req)
    1010         except RequestDone:
    1111             raise
     12-        except Exception as e:
    1213+        except PermissionError as e:
    1314+            raise HTTPForbidden(e)
     
    1617+        except TracError as e:
    1718+            raise HTTPInternalError(e)
    18          except Exception as e:
     19+        except Exception:
    1920             # post-process the request in case of errors
    2021             err = sys.exc_info()
    21 @@ -282,18 +288,11 @@ class RequestDispatcher(Component):
     22             try:
    2223                 self._post_process_request(req)
    2324             except RequestDone: