Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexadite-Omri authored Jul 26, 2017
1 parent 17baef3 commit a982386
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions txwinrm/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,13 @@ def cleanup(self):
def get_auth_details(auth_header=''):
auth_details = ''
for field in auth_header.split(','):
kind, details = field.strip().split(' ', 1)
if kind.lower() == 'kerberos':
auth_details = details.strip()
break
try:
kind, details = field.strip().split(' ', 1)
if kind.lower() == 'kerberos':
auth_details = details.strip()
break
except ValueError:
continue
return auth_details

@defer.inlineCallbacks
Expand Down

0 comments on commit a982386

Please sign in to comment.