In order for the %tb magic to work as expected, no other error can be raised by invoking it. Even if an error is caught immediately, it affects the 'last error' values in sys.
This cuts a try/except block out of ip.magic(). Happily, in this case there was a simpler way to do the same thing.
Fix for %tb magic.