Werkzeug 2.1 broke our auth system. It now throws an exception instead of returning None when being passed non-json when calling .to_json. We depended on the previous behaviour.
This PR adds werkzeug<2.1 and >=2.1 to the tox matrix to ensure we support both cases and fixes the code.
Werkzeug 2.1 broke our auth system. It now throws an exception instead of returning
None
when being passed non-json when calling.to_json
. We depended on the previous behaviour.This PR adds werkzeug<2.1 and >=2.1 to the tox matrix to ensure we support both cases and fixes the code.