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

Fix sending to EDDN

Was broken by d4dddb6
This commit is contained in:
Jonathan Harris 2017-07-31 15:31:21 +01:00
parent bfda388d65
commit 249e71e43c

View File

@ -174,9 +174,10 @@ try:
if args.n:
try:
eddn.export_commodities(data)
eddn.export_outfitting(data)
eddn.export_shipyard(data)
eddn_sender = eddn.EDDN(None)
eddn_sender.export_commodities(data, False)
eddn_sender.export_outfitting(data, False)
eddn_sender.export_shipyard(data, False)
except Exception as e:
sys.stderr.write("Failed to send data to EDDN: %s\n" % unicode(e).encode('ascii', 'replace'))