Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 08f9fea

Browse files
committed
fixing regression, adding back KeyboardInterrupt exception handler
1 parent 96d84e4 commit 08f9fea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

start_rtmbot.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ def parse_args():
1818
args = parse_args()
1919
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
2020
bot = RtmBot(config)
21-
bot.start()
21+
try:
22+
bot.start()
23+
except KeyboardInterrupt:
24+
sys.exit(0)
25+
except:
26+
logging.exception('OOPS')

0 commit comments

Comments
 (0)