TIP: more info in Python's IPDB debugger

In ipdb the “dunder exception” variable has more information after your program crashes:
pdb> pp __exception__

(,
 ClientError…)