Rewrite old Journal schema name on replay

This commit is contained in:
Jonathan Harris committed 2017-07-03 16:29:09 +01:00
1 parent b6666235c4
commit 6e2c74eb5a
1 file changed
+3
+3
View File
@@ -137,6 +137,9 @@ class EDDN:
print_exc()
self.replaylog.pop(0) # Discard and continue
else:
# Rewrite old schema name
if msg['$schemaRef'].startswith('http://schemas.elite-markets.net/eddn/'):
msg['$schemaRef'] = 'https://eddn.edcd.io/schemas/' + msg['$schemaRef'][38:]
try:
self.send(cmdr, msg)
self.replaylog.pop(0)