diff --git a/swh/lister/core/lister_transports.py b/swh/lister/core/lister_transports.py index 01ee9f2..1bef317 100644 --- a/swh/lister/core/lister_transports.py +++ b/swh/lister/core/lister_transports.py @@ -73,7 +73,7 @@ class SWHListerHttpTransport(abc.ABC): creds = self.config['credentials'] auth = random.choice(creds) if creds else None if auth: - params['auth'] = auth + params['auth'] = (auth['username'], auth['password']) try: return self.session.get(self.api_baseurl + path, **params) except requests.exceptions.ConnectionError as e: