Open suever opened 9 years ago
From darcymason@gmail.com on April 02, 2013 18:44:04
Yes, this is a good point -- pydicom should be more helpful in localizing a bad value. I'll have a look at your patch.
Status: Accepted
Owner: darcymason@gmail.com
From videa...@gmail.com on March 29, 2013 15:24:07
Pydicom correctly throws errors when a tag is of invalid type/value, however it is nearly impossible to determine which tag is responsible for the offending error message.
To reproduce
Similarly:
It would be nice if the traceback was annotated with the failed tag number as the value is passed up the stack. I wrote an 8-line patch to fix that (attached), although I'm sure there's a better way. What version of the product are you using? Pydicom 0.9.7, 0.9.8, trunk
Attached:
Attachment: ex_fail.py tag_in_exception.patch
Original issue: http://code.google.com/p/pydicom/issues/detail?id=123