mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-22 03:06:59 +03:00
eddn: codexentry - add paranoia post-processing check of values
This commit is contained in:
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user