1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-30 07:09:39 +03:00

Fixed invalid deep_get call

This commit is contained in:
A_D 2020-07-13 23:02:37 +02:00 committed by Athanasius
parent b6482878f0
commit 3dfca91e1d

View File

@ -159,7 +159,7 @@ def main():
print('Where are you?!', file=sys.stderr) # Shouldn't happen
sys.exit(EXIT_SERVER)
elif not deep_get(data, 'ship', 'modules') or not deep_get('ship', 'name', default=''):
elif not deep_get(data, 'ship', 'modules') or not deep_get(data, 'ship', 'name', default=''):
print('What are you flying?!', file=sys.stderr) # Shouldn't happen
sys.exit(EXIT_SERVER)