Skip to content

Commit

Permalink
creds fix #65
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubbl3 committed Jan 12, 2020
1 parent 29da1cb commit c35ccc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/common/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,10 @@ def display_credentials(creds):
domain = cred[2]
username = cred[3]
password = cred[4]
host = cred[5].decode('latin-1')

if isinstance(cred[5], bytes):
host = cred[5].decode('latin-1')
else:
host = cred[5]
print(" %s%s%s%s%s%s" % ('{0: <8}'.format(credID), '{0: <11}'.format(credType), '{0: <25}'.format(domain), '{0: <17}'.format(username), '{0: <17}'.format(host), password))

print('')

0 comments on commit c35ccc8

Please sign in to comment.