[sankaku] fix re-authentication (#8779)

Unset the `Authorization` header before performing a re-login
This commit is contained in:
Mike Fährmann
2025-12-30 10:15:42 +01:00
parent a6c845bdc8
commit a97c320a38

View File

@@ -356,6 +356,7 @@ def _authenticate_impl(extr, username, password):
extr.log.info("Logging in as %s", username)
api = extr.api
api.headers["Authorization"] = None
url = api.ROOT + "/auth/token"
data = {"login": username, "password": password}