Made sure pythonmagick image is given a string, not unicode.
This commit is contained in:
parent
59c52a460c
commit
51525eddff
1 changed files with 1 additions and 1 deletions
2
pe.py
2
pe.py
|
|
@ -1222,7 +1222,7 @@ class PEFile(Printable):
|
|||
of the file, but that did not work. Comments were left as history
|
||||
to what I attempted.
|
||||
"""
|
||||
icon_path = os.path.expanduser(icon_path)
|
||||
icon_path = str(os.path.expanduser(icon_path)) #this needs to be a string and not unicode
|
||||
|
||||
if pm is None:
|
||||
raise Exception('PythonMagick is required to run this function.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue