mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Also call processing functions for error callbacks
Otherwise the appropriate callbacks might not get called. Contributes to issue CURA-8539.
This commit is contained in:
parent
e8f9e92f02
commit
8ea8cc752f
2 changed files with 3 additions and 2 deletions
|
|
@ -73,7 +73,8 @@ class AuthorizationHelpers:
|
|||
self._token_url,
|
||||
data = urllib.parse.urlencode(data).encode("UTF-8"),
|
||||
headers_dict = headers,
|
||||
callback = lambda response: self.parseTokenResponse(response, callback)
|
||||
callback = lambda response: self.parseTokenResponse(response, callback),
|
||||
error_callback = lambda response: self.parseTokenResponse(response, callback)
|
||||
)
|
||||
|
||||
def parseTokenResponse(self, token_response: QNetworkReply, callback: Callable[[AuthenticationResponse], None]) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue