-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
(Originally submitted by https://github.com/Hexadite-Max)
In the "try" statement the call to file(fname, 'rb') may fail to various
reasons, however the exception that it throws gets lost due to the call to
fd.close() as there is no fd which results in:
File "C:\Python27\lib\site-packages\pefile.py", line 1810, in parse
UnboundLocalError: local variable 'fd' referenced before assignment
Patch attached.
Original issue reported on code.google.com by [email protected] on 9 Oct 2014 at 2:23
Attachments: