I was thinking just check for tuple instead of the try...except construct. But that is minor and the current approach might be safer.