ipython/ipython — pull request #1779 by takluyver (2012-05-28 21:21:17+00:00)
Title: Tidy up error raising in magic decorators.

Closes gh-1778

Also turned a couple of `ValueError`s into `TypeError`, which seemed more appropriate.