mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add some todos
This commit is contained in:
parent
4b104b6252
commit
98b8ca31fa
@ -266,4 +266,8 @@ def main() -> None:
|
|||||||
exit()
|
exit()
|
||||||
|
|
||||||
pferd = Pferd(config)
|
pferd = Pferd(config)
|
||||||
|
try:
|
||||||
asyncio.run(pferd.run())
|
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))}")
|
log.print(f"[bold bright_red]Warning[/] {escape(str(e))}")
|
||||||
crawler.error_free = False
|
crawler.error_free = False
|
||||||
except CrawlError as e:
|
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))}")
|
log.print(f"[bold bright_red]Error[/] [red]{escape(str(e))}")
|
||||||
crawler.error_free = False
|
crawler.error_free = False
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user