This code catches all possible exceptions. This catches configuration errors as well as invalid form entries, causing silent failures and bugs:
Please catch specific exceptions only, see:
https://medium.com/@saadjamilakhtar/5-best-practices-for-python-exception-handling-5e54b876a20