• 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
..
__init__.py Loading commit data...
ajax.py Loading commit data...
base.py Loading commit data...
fields.py Loading commit data...
filters.py Loading commit data...
form.py Loading commit data...
helpers.py Loading commit data...
template.py Loading commit data...
typefmt.py Loading commit data...
widgets.py Loading commit data...