mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Add some todos
This commit is contained in:
parent
4b104b6252
commit
98b8ca31fa
2 changed files with 6 additions and 1 deletions
|
|
@ -266,4 +266,8 @@ def main() -> None:
|
|||
exit()
|
||||
|
||||
pferd = Pferd(config)
|
||||
try:
|
||||
asyncio.run(pferd.run())
|
||||
except KeyboardInterrupt:
|
||||
# TODO Clean up tmp files
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue