diff --git a/proxy_scraper_checker/settings.py b/proxy_scraper_checker/settings.py index ca70531..4310f06 100644 --- a/proxy_scraper_checker/settings.py +++ b/proxy_scraper_checker/settings.py @@ -272,10 +272,8 @@ class Settings: else Path(cfg["output"]["path"]) ) - output_path_task = asyncio.create_task( - fs.async_create_or_fix_dir( - output_path, permission=stat.S_IXUSR | stat.S_IWUSR - ) + output_path_future = fs.async_create_or_fix_dir( + output_path, permission=stat.S_IXUSR | stat.S_IWUSR ) check_website_type, real_ip = await _get_check_website_type_and_real_ip( @@ -293,7 +291,7 @@ class Settings: permission=stat.S_IRUSR | stat.S_IXUSR | stat.S_IWUSR, ) - await output_path_task + await output_path_future return cls( check_website=cfg["check_website"],