X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=main.py;h=d4bab0296855383ff439341b87ab70f45297fc00;hb=f9226903cb53a9b303a26de562e321159349f8df;hp=17cf58c3ec740acd135710baf5152124119916ed;hpb=c5a7f2863f5c041ff906b2407a74971e2178a729;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git 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)