From dbdf5b84bed002ee9282a5d4321fa43760c6d9eb Mon Sep 17 00:00:00 2001 From: monosans Date: Fri, 1 Mar 2024 07:28:43 +0300 Subject: [PATCH] Fix --- proxy_scraper_checker/settings.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"],