1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-23 12:20:30 +03:00

eddn: say 'is falsey' in error messages as well

This commit is contained in:
Athanasius 2022-02-01 18:05:28 +00:00
parent 2bf70aae14
commit 45b78f55c4
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -1432,14 +1432,14 @@ def journal_entry( # noqa: C901, CCR001
if 'StarSystem' not in entry:
if not system:
logger.warning("system is falsey, can't add StarSystem")
return "system is None, can't add StarSystem"
return "system is falsey, can't add StarSystem"
entry['StarSystem'] = system
if 'StarPos' not in entry:
if not this.coordinates:
logger.warning("this.coordinates is falsey, can't add StarPos")
return "this.coordinates is None, can't add StarPos"
return "this.coordinates is falsey, can't add StarPos"
# Gazelle[TD] reported seeing a lagged Scan event with incorrect
# augmented StarPos: <https://github.com/EDCD/EDMarketConnector/issues/961>
@ -1452,7 +1452,7 @@ def journal_entry( # noqa: C901, CCR001
if 'SystemAddress' not in entry:
if not this.systemaddress:
logger.warning("this.systemaddress is falsey, can't add SystemAddress")
return "this.systemaddress is None, can't add SystemAddress"
return "this.systemaddress is falsey, can't add SystemAddress"
entry['SystemAddress'] = this.systemaddress