[Answered ]-How to pass variable to exception middleware with Django?

2👍

It would just be exception.value since the exception matches the class you are checking. The exception will have the data you used to create it.

Leave a comment