Merge "Correct reraising of exception"
This commit is contained in:
commit
f37ad6dc5a
@ -316,7 +316,7 @@ class Manager(object):
|
||||
except OSError as e:
|
||||
# PID died before kill_group can take action?
|
||||
if e.errno != errno.ESRCH:
|
||||
raise e
|
||||
raise
|
||||
else:
|
||||
print(_('Waited %(kill_wait)s seconds for %(server)s '
|
||||
'to die; giving up') %
|
||||
|
@ -1727,7 +1727,7 @@ def get_logger(conf, name=None, log_to_console=False, log_route=None,
|
||||
except socket.error as e:
|
||||
# Either /dev/log isn't a UNIX socket or it does not exist at all
|
||||
if e.errno not in [errno.ENOTSOCK, errno.ENOENT]:
|
||||
raise e
|
||||
raise
|
||||
handler = SysLogHandler(facility=facility)
|
||||
handler.setFormatter(formatter)
|
||||
logger.addHandler(handler)
|
||||
|
Loading…
x
Reference in New Issue
Block a user