Gracefully handle sigint

This commit is contained in:
2019-12-19 10:53:20 -05:00
parent 2aefd2c3a2
commit 7ea1612b32
2 changed files with 12 additions and 2 deletions

View File

@@ -70,6 +70,8 @@ class Web:
},
}])
return r
except KeyboardInterrupt as e:
raise e
except Exception as e:
logger.error(str(e) + traceback.format_exc())
if self.monitoring: