[New-bugs-announce] [issue23887] HTTPError doesn't have a good "repr" representation

Facundo Batista report at bugs.python.org
Wed Apr 8 13:44:13 CEST 2015

New submission from Facundo Batista:

I normally print(repr()) the exception I got, for debugging purposes. I use repr() because for builtin exceptions, str() will print only the message, and not the exception type.

But for HTTPError, the repr() of it is "HTTPError()", without further explanation...

messages: 240262
nosy: facundobatista
priority: normal
severity: normal
status: open
title: HTTPError doesn't have a good "repr" representation
versions: Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list