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

eddn: codexentry - add paranoia post-processing check of values

This commit is contained in:
Athanasius 2022-02-01 16:22:12 +00:00
parent f144c199ae
commit e2e34674c2
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -951,6 +951,10 @@ class EDDN:
entry['BodyID'] = this.body_id
#######################################################################
for k, v in entry.items():
if v is None or isinstance(v, str) and v == '':
logger.warning(f'post-processing entry contains entry["{k}"] = {v}]')
msg = {
'$schemaRef': f'https://eddn.edcd.io/schemas/codexentry/1{"/test" if is_beta else ""}',
'message': entry