diff --git a/valhallaAPI/valhalla.py b/valhallaAPI/valhalla.py index 5e6b334..602d915 100644 --- a/valhallaAPI/valhalla.py +++ b/valhallaAPI/valhalla.py @@ -79,7 +79,7 @@ def set_proxy(self, proxy, user="", pwd=""): # Auth auth_string = "" if user: - auth_string = "{1}:{2}@".format(user, pwd) + auth_string = "{0}:{1}@".format(user, pwd) # Set the proxy self.proxies = {u.scheme: '{0}://{1}{2}/'.format( u.scheme,