Open girardinsamuel opened 2 years ago
All blocks or tab have a serialize()
method, inside this we should not get a serialization error.
If we have one we could still add a try/except in the web renderer render() method to catch Serialization error and display something to the user ?
To reproduce the error we can do a file upload from a POST, and put file into a variable, then raise an exception.
The local variables will contain a file which is not serializable.
So we could at first try to serialize in a nice way internal masonite classes:
It should also be ensured on Masonite blocks or tabs:
https://github.com/MasoniteFramework/masonite/blob/b166e959baa1f0a641259cec03472cfd38c57f0d/src/masonite/providers/ExceptionProvider.py#L46