From f9226903cb53a9b303a26de562e321159349f8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 4 Mar 2018 23:35:16 +0100 Subject: Fixes after night run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Currency pair doesn’t work when fetching orders - Store error in main to report. - Cancel orders when closing trade - Print closed status of trade to repr - Don’t try to cancel not cancellable orders --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 17cf58c..d4bab02 100644 --- a/main.py +++ b/main.py @@ -10,6 +10,9 @@ for market_config, user_id in helper.main_fetch_markets(pg_config, args.user): user_market = market.Market.from_config(market_config, debug=args.debug) helper.main_process_market(user_market, args.action, before=args.before, after=args.after) except Exception as e: - print("{}: {}".format(e.__class__.__name__, e)) + try: + user_market.report.log_error("main", exception=e) + except: + print("{}: {}".format(e.__class__.__name__, e)) finally: helper.main_store_report(report_path, user_id, user_market) -- cgit v1.2.3