소스 검색

Catch config errors on reload

master
JustAnotherArchivist 4 년 전
부모
커밋
8f069ccac1
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      http2irc.py

+ 5
- 1
http2irc.py 파일 보기

@@ -447,7 +447,11 @@ async def main():
def sigusr1_callback():
logging.info('Got SIGUSR1, reloading config')
nonlocal config, irc, webserver
newConfig = config.reread()
try:
newConfig = config.reread()
except InvalidConfig as e:
logging.error(f'Config reload failed: {e!s}')
return
config = newConfig
irc.update_config(config)
webserver.update_config(config)


불러오는 중...
취소
저장