Stefan Krah added the comment:
Hardly a bad error message, but see #26208.
--
nosy: +skrah
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> decimal C module's exceptions don't match the Python version
type: behavior -> enhancement
New submission from Samuele Santi:
Looks like, on some occasions, running ``Decimal('garbage')`` on Python 3.x
decimal raises this error:
decimal.InvalidOperation: []
instead of the usual:
decimal.InvalidOperation: Invalid literal for Decimal: 'garbage'
This seems to be caused by th