1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

EDMarketConnector: invalidate companion session and return on CredentialsError

* If we don't invalidate then the companion.Auth code will do nothing
  due to "already auth'd".
* We need to give the auth flow time to complete, so need to return.
* As that auth flow can take indeterminate time, not setting a timed
  retry of the CAPI query here.  We should consider setting a flag and
  reacting in the Auth code though.
This commit is contained in:
Athanasius 2021-08-28 14:24:54 +01:00
parent 74170da434
commit 024e2ba357
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -1114,7 +1114,9 @@ class AppWindow(object):
except companion.CredentialsError:
companion.session.retrying = False
# TODO: Might need to .invalidate() here to avoid "already auth'd"
companion.session.invalidate()
companion.session.login()
return
# Companion API problem
except companion.ServerLagging as e: