handle keyboardinterrupt better in flow
parent
865bc94ccb
commit
db203290dd
|
@ -66,7 +66,11 @@ class OnionrFlow:
|
||||||
content = self.myCore._utils.escapeAnsi(content.replace('\n', '\\n').replace('\r', '\\r').strip())
|
content = self.myCore._utils.escapeAnsi(content.replace('\n', '\\n').replace('\r', '\\r').strip())
|
||||||
logger.info("\n" + block.getDate().strftime("%m/%d %H:%M") + ' - ' + '\033[0;0m' + content)
|
logger.info("\n" + block.getDate().strftime("%m/%d %H:%M") + ' - ' + '\033[0;0m' + content)
|
||||||
self.alreadyOutputed.append(blockHash)
|
self.alreadyOutputed.append(blockHash)
|
||||||
time.sleep(5)
|
try:
|
||||||
|
time.sleep(5)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
self.flowRunning = False
|
||||||
|
pass
|
||||||
|
|
||||||
def on_init(api, data = None):
|
def on_init(api, data = None):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue