Fix crawler cleanup not being awaited

This commit is contained in:
Joscha 2021-05-11 00:28:45 +02:00
parent 0459ed093e
commit c3ce6bb31c

View File

@ -29,7 +29,7 @@ class LocalCrawler(Crawler):
async def crawl(self) -> None:
await self._crawl_path(self._path, PurePath())
if self.error_free:
self.cleanup()
await self.cleanup()
@anoncritical
async def _crawl_path(self, path: Path, pure: PurePath) -> None: