astropy/astropy — pull request #2462 by mdboom (2014-05-09 14:01:48+00:00)
Title: Improve error message in wcs.sub

We should get a TypeError rather, rather than a ValueError when passing
a single string to `wcs.sub`.

Partially addresses #1587.