Skip to content

Commit

Permalink
Raise exception variable for explicitness
Browse files Browse the repository at this point in the history
  • Loading branch information
ddabble committed Aug 3, 2023
1 parent c9c02ae commit eee190c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_history/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def __call__(self, request):
HistoricalRecords.context.request = request
try:
response = self.get_response(request)
except Exception:
raise
except Exception as e:
raise e
finally:
del HistoricalRecords.context.request
return response

0 comments on commit eee190c

Please sign in to comment.