Add some todos

This commit is contained in:
Joscha 2021-05-22 14:45:32 +02:00
parent 4b104b6252
commit 98b8ca31fa
2 changed files with 6 additions and 1 deletions

View File

@ -266,4 +266,8 @@ def main() -> None:
exit()
pferd = Pferd(config)
asyncio.run(pferd.run())
try:
asyncio.run(pferd.run())
except KeyboardInterrupt:
# TODO Clean up tmp files
pass

View File

@ -49,6 +49,7 @@ def noncritical(f: Wrapped) -> Wrapped:
log.print(f"[bold bright_red]Warning[/] {escape(str(e))}")
crawler.error_free = False
except CrawlError as e:
# TODO Don't print error, just pass it on upwards
log.print(f"[bold bright_red]Error[/] [red]{escape(str(e))}")
crawler.error_free = False
raise