from ipdb import slaunch_ipdb_on_exception
with slaunch_ipdb_on_exception():