Commit 99db2bbb authored by Yvan Masson's avatar Yvan Masson
Browse files

Hopefully fix printing some errors

parent a725937d
......@@ -282,7 +282,7 @@ def gen_whoswho_worker(pageFormat, title, people, lastNameBelow, output):
"\nTried to run: {}"
"\n\nError was: {}".format(
" ".join([str(v) for v in cmd]),
str(error.stderr, "utf-8").encode("utf-8")))))
error.stderr.decode(encoding="utf-8")))))
# retrieve created files
jpgsList = sorted(glob.glob(os.path.join(tempDir, "*.jpg")),
......@@ -1738,7 +1738,7 @@ class MainWindow(Gtk.Window):
self.display_simple_message,
Gtk.MessageType.ERROR,
"Error",
str(error.stderr, "utf-8"),
error.stderr,
True)
return
finally:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment