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:
parent
f144c199ae
commit
e2e34674c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user