diff --git a/EDMarketConnector.py b/EDMarketConnector.py index e4aa7c30..280c2b2a 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1216,14 +1216,11 @@ class AppWindow(object): ) if f: with open(f, 'wb') as h: - h.write(json.dumps( - data, - ensure_ascii=False, - indent=2, - sort_keys=True, - separators=(',', ': ')).encode('utf-8') - ) - + h.write(json.dumps(dict(data), + ensure_ascii=False, + indent=2, + sort_keys=True, + separators=(',', ': ')).encode('utf-8')) except companion.ServerError as e: self.status['text'] = str(e)