From 119823eeac879205988ade354455316099960a52 Mon Sep 17 00:00:00 2001 From: gcarq Date: Fri, 1 Sep 2017 21:34:48 +0200 Subject: [PATCH] remove unused variables --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index a17895561..a97419c94 100755 --- a/main.py +++ b/main.py @@ -55,7 +55,7 @@ class TradeThread(threading.Thread): finally: Session.flush() time.sleep(25) - except (RuntimeError, JSONDecodeError) as e: + except (RuntimeError, JSONDecodeError): TelegramHandler.send_msg('*Status:* Got RuntimeError: ```\n{}\n```'.format(traceback.format_exc())) logger.exception('RuntimeError. Stopping trader ...') finally: @@ -119,8 +119,7 @@ def get_instance(recreate: bool=False) -> TradeThread: """ global _instance if recreate and not _instance.is_alive(): - logger.debug('Creating TradeThread instance') - _should_stop = False + logger.debug('Creating thread instance...') _instance = TradeThread() return _instance