• Nitish Rathi's avatar
    swallow TypeError only if related to compatibility · a4c87dac
    Nitish Rathi authored
    Handling TypeError in _on_model_change without any additional checking for the cause causes an extremely puzzling error message in case a TypeError is raised by the code in on_model_change. Checking the error's message to see if it's actually caused by incompatible on_model_change signature give more readable error message and trace when the TypeError is caused by the user's code.
    a4c87dac
Name
Last commit
Last update
babel Loading commit data...
doc Loading commit data...
examples Loading commit data...
flask_admin Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
NOTICE Loading commit data...
README.rst Loading commit data...
TODO.txt Loading commit data...
dev-requirements.txt Loading commit data...
projects.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...