From cf10dae8752a69548aa7288122857056c943a1ea Mon Sep 17 00:00:00 2001 From: Jylpah Date: Wed, 24 Oct 2018 12:31:37 +0300 Subject: [PATCH] Fixed bug in error handling --- analyzeReplays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analyzeReplays.py b/analyzeReplays.py index c9d6c74..477b022 100644 --- a/analyzeReplays.py +++ b/analyzeReplays.py @@ -266,7 +266,7 @@ async def main(argv): bu.setDebug(args.debug) wg = WG(WG_appID, args.tankfile, args.mapfile) - if (args.accountID == None) and (args.account != None): + if args.account != None: args.accountID = await wg.getAccountID(args.account) bu.debug('WG account_id: ' + str(args.accountID)) @@ -510,7 +510,7 @@ async def replayReader(queue: asyncio.Queue, readerID: int, args : argparse.Name bu.debug('Marking task ' + str(replayID) + ' done') except Exception as err: - bu.error(err) + bu.error(str(err)) queue.task_done() except asyncio.CancelledError: return results, playerstanks