Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Aug 14, 2017
1 parent 1656cb0 commit d03389e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BeRoot/beRoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def print_output(output, write=False, file=None):
st += output['All']

if toPrint:
print st
print str(st)

if write:
f = open(file, 'a')
Expand Down Expand Up @@ -93,7 +93,11 @@ def run(cmd, listSoftwares, write):

start_time = time.time()
for r in run(args.cmd, args.list, args.write):
print_output(r, args.write, path)
try:
print_output(r, args.write, path)
except:
# manage unicode
pass

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

0 comments on commit d03389e

Please sign in to comment.