fix job encoding issue

This commit is contained in:
n1nj4sec 2016-07-27 19:11:07 +02:00
parent 1a0bd4e240
commit 22dff36939
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ class PupyJob(object):
res="" res=""
for m in self.pupymodules: for m in self.pupymodules:
res+=m.formatter.format_section(str(m.client)) res+=m.formatter.format_section(str(m.client))
res+=m.stdout.getvalue() gv=m.stdout.getvalue()
res+=gv.encode('utf8', errors="replace")
res+="\n" res+="\n"
m.stdout.truncate(0) m.stdout.truncate(0)
return res return res