mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-14 02:32:44 +03:00
CAPI: Log if no commander in profile() data
This commit is contained in:
1 parent
b11be09b56
commit
5d39dee900
1 file changed
+5
-1
+5
-1
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user