Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from khertan/master
Browse files Browse the repository at this point in the history
Workarround for authentification errors
  • Loading branch information
wolph committed Apr 17, 2013
2 parents 54d1e5b + 5a16c71 commit 2423cd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mailjet/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ def get_opener(self, url):
self.access_key,
self.secret_key,
)
password_mgr.add_password(
'Provide an apiKey and secretKey',
settings.URL,
self.access_key,
self.secret_key,
)
# Create a handler for this password manager
handler = urllib2.HTTPBasicAuthHandler(password_mgr)
# Create an opener for the handler
Expand Down

0 comments on commit 2423cd8

Please sign in to comment.