google-code-export / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 0 forks source link

Correct line 48 in filewriter.py #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Save a dicom file created from scratch
2.
3.
What is the expected output? What do you see instead?

dicom/filewriter.py", line 48, in write_numbers
    raise IOError("{0}\nfor data_element:\n{1}".format(str(e), str(data_elemesnt)))
NameError: global name 'data_elemesnt' is not defined

What version of the product are you using? '0.9.8'

***NOTE***: any text or attached files posted with the issue can be viewed
by anyone. You are solely responsible to ensure that they contain no
confidential information of any kind.

Please provide any additional information below.

I corrected directly the line in my package and it works.
the new line should be:

raise IOError("{0}\nfor data_element:\n{1}".format(str(e), str(data_element)))

Original issue reported on code.google.com by paul.mor...@gmail.com on 3 Apr 2014 at 9:34

GoogleCodeExporter commented 9 years ago
This is a duplicate of Issue #125 and #131. The error was corrected after the 
0.9.8 release.

Original comment by Suever@gmail.com on 4 Apr 2014 at 3:54