From 51525eddff3ed50d4879366f2ba1ae4ed30a678f Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Sun, 19 Oct 2014 16:16:56 +1300 Subject: [PATCH] Made sure pythonmagick image is given a string, not unicode. --- pe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pe.py b/pe.py index 5b8ff28..e10faf5 100644 --- a/pe.py +++ b/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.')