Print report even if exiting due to Ctrl+C

This commit is contained in:
Joscha
2021-05-25 15:35:36 +02:00
parent 980578d05a
commit edb52a989e
3 changed files with 63 additions and 53 deletions

View File

@ -170,6 +170,7 @@ class Config:
def dump_to_stdout(self) -> None:
self._parser.write(sys.stdout)
# TODO Rename to "crawl_sections"
def crawler_sections(self) -> List[Tuple[str, SectionProxy]]:
result = []
for name, proxy in self._parser.items():
@ -178,6 +179,7 @@ class Config:
return result
# TODO Rename to "auth_sections"
def authenticator_sections(self) -> List[Tuple[str, SectionProxy]]:
result = []
for name, proxy in self._parser.items():