mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-07 09:15:19 -05:00
![Richard van der Hoff](/assets/img/avatar_default.png)
If somebody sends us a request where the the body is invalid utf-8, we should return a 400 rather than a 500. (json.loads throws a UnicodeError in this situation) We might as well catch all Exceptions here: it seems very unlikely that we would get a request that *isn't caused by invalid json.