fixing regression, adding back KeyboardInterrupt exception handler
This commit is contained in:
parent
96d84e4edf
commit
08f9feacf6
1 changed files with 6 additions and 1 deletions
|
@ -18,4 +18,9 @@ def parse_args():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
|
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
|
||||||
bot = RtmBot(config)
|
bot = RtmBot(config)
|
||||||
|
try:
|
||||||
bot.start()
|
bot.start()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
sys.exit(0)
|
||||||
|
except:
|
||||||
|
logging.exception('OOPS')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue