Fix bug in list_cards without a limit

I had forgotten to catch TypeErrors. Oops.