mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Frontier Auth: Rename start()
method to something more obvious
This commit is contained in:
parent
7339cc59ed
commit
81b5d015fd
@ -754,7 +754,7 @@ class AppWindow(object):
|
||||
journal_lock.update_lock(self.w)
|
||||
|
||||
# (Re-)install log monitoring
|
||||
if not monitor.start(self.w):
|
||||
if not monitor.start_frontier_auth(self.w):
|
||||
# LANG: ED Journal file location appears to be in error
|
||||
self.status['text'] = _('Error: Check E:D journal file location')
|
||||
|
||||
@ -1222,7 +1222,7 @@ class AppWindow(object):
|
||||
logger.info('Monitor: Disable WinSparkle automatic update checks')
|
||||
|
||||
# Can't start dashboard monitoring
|
||||
if not dashboard.start(self.w, monitor.started):
|
||||
if not dashboard.start_frontier_auth(self.w, monitor.started):
|
||||
logger.info("Can't start Status monitoring")
|
||||
|
||||
# Export loadout
|
||||
|
@ -516,7 +516,7 @@ class Session(object):
|
||||
if access_token:
|
||||
logger.debug('We have an access_token')
|
||||
self.auth = None
|
||||
self.start(access_token)
|
||||
self.start_frontier_auth(access_token)
|
||||
return True
|
||||
|
||||
else:
|
||||
@ -536,7 +536,7 @@ class Session(object):
|
||||
|
||||
try:
|
||||
logger.debug('Trying authorize with payload from handler')
|
||||
self.start(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
|
||||
self.start_frontier_auth(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
|
||||
self.auth = None
|
||||
|
||||
except Exception:
|
||||
@ -545,7 +545,7 @@ class Session(object):
|
||||
self.auth = None
|
||||
raise # Bad thing happened
|
||||
|
||||
def start(self, access_token: str) -> None:
|
||||
def start_frontier_auth(self, access_token: str) -> None:
|
||||
"""Start an oAuth2 session."""
|
||||
logger.debug('Starting session')
|
||||
self.session = requests.Session()
|
||||
|
Loading…
x
Reference in New Issue
Block a user