Group exceptions with same body together in Arbiter.run() (#2081)

This commit is contained in:
장준영 2019-08-20 09:34:18 +09:00 committed by Berker Peksag
parent 40d22ae38d
commit d765f0d123

View File

@ -223,9 +223,7 @@ class Arbiter(object):
self.log.info("Handling signal: %s", signame)
handler()
self.wakeup()
except StopIteration:
self.halt()
except KeyboardInterrupt:
except (StopIteration, KeyboardInterrupt):
self.halt()
except HaltServer as inst:
self.halt(reason=inst.reason, exit_status=inst.exit_status)