Skip to content

Commit d03389e

Browse files
committed
fix encoding
1 parent 1656cb0 commit d03389e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

BeRoot/beRoot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def print_output(output, write=False, file=None):
4646
st += output['All']
4747

4848
if toPrint:
49-
print st
49+
print str(st)
5050

5151
if write:
5252
f = open(file, 'a')
@@ -93,7 +93,11 @@ def run(cmd, listSoftwares, write):
9393

9494
start_time = time.time()
9595
for r in run(args.cmd, args.list, args.write):
96-
print_output(r, args.write, path)
96+
try:
97+
print_output(r, args.write, path)
98+
except:
99+
# manage unicode
100+
pass
97101

98102
elapsed_time = time.time() - start_time
99103
print '\n[!] Elapsed time = ' + str(elapsed_time)

0 commit comments

Comments
 (0)