TypeErrors where printed wrong.

Signed-off-by: Stefan C. Mueller <scm@smurn.org>