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

This commit is contained in:
Athanasius committed 2022-02-01 16:22:59 +00:00
1 parent f144c199ae
commit e2e34674c2
1 file changed
+4
+4
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