Skip to content

Commit

Permalink
Merge pull request arachnys#590 from davidjb/patch-1
Browse files Browse the repository at this point in the history
Cabot sends `None` string in HTTP status checks in auth header for username or password
  • Loading branch information
dbuxton committed Apr 17, 2018
2 parents 9ba585d + bca6ee1 commit a9dc61c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cabot/cabotapp/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ def _run(self):

auth = None
if self.username or self.password:
auth = (self.username, self.password)
auth = (self.username if self.username is not None else '',
self.password if self.password is not None else '')

try:
resp = requests.get(
Expand Down

0 comments on commit a9dc61c

Please sign in to comment.