1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

CAPI: Log if no commander in profile() data

This commit is contained in:
Athanasius 2021-03-06 10:54:15 +00:00
parent 67a91cf7d1
commit 71858357eb

@ -527,7 +527,11 @@ class Session(object):
def profile(self) -> CAPIData:
"""Perform general CAPI /profile endpoint query."""
return self.query(URL_QUERY)
data = self.query(URL_QUERY)
if 'commander' not in data:
logger.error('No commander in returned data')
return data
def station(self) -> CAPIData:
"""Perform CAPI /profile endpoint query for station data."""