mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
remove unused variables
This commit is contained in:
parent
32cac11580
commit
119823eeac
5
main.py
5
main.py
|
@ -55,7 +55,7 @@ class TradeThread(threading.Thread):
|
||||||
finally:
|
finally:
|
||||||
Session.flush()
|
Session.flush()
|
||||||
time.sleep(25)
|
time.sleep(25)
|
||||||
except (RuntimeError, JSONDecodeError) as e:
|
except (RuntimeError, JSONDecodeError):
|
||||||
TelegramHandler.send_msg('*Status:* Got RuntimeError: ```\n{}\n```'.format(traceback.format_exc()))
|
TelegramHandler.send_msg('*Status:* Got RuntimeError: ```\n{}\n```'.format(traceback.format_exc()))
|
||||||
logger.exception('RuntimeError. Stopping trader ...')
|
logger.exception('RuntimeError. Stopping trader ...')
|
||||||
finally:
|
finally:
|
||||||
|
@ -119,8 +119,7 @@ def get_instance(recreate: bool=False) -> TradeThread:
|
||||||
"""
|
"""
|
||||||
global _instance
|
global _instance
|
||||||
if recreate and not _instance.is_alive():
|
if recreate and not _instance.is_alive():
|
||||||
logger.debug('Creating TradeThread instance')
|
logger.debug('Creating thread instance...')
|
||||||
_should_stop = False
|
|
||||||
_instance = TradeThread()
|
_instance = TradeThread()
|
||||||
return _instance
|
return _instance
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user