From 80d3c06310476c5e4444e3812a2fae61b2b9ac59 Mon Sep 17 00:00:00 2001 From: FazziCLAY Date: Wed, 18 Mar 2026 22:20:14 +0300 Subject: [PATCH] feat: check dir before run_session --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index e9f5e36..75a3b8d 100644 --- a/main.py +++ b/main.py @@ -230,10 +230,15 @@ def run_session(): except Exception as e: print(f"Error deleting directory '{DIRNAME}': {e}") +def check_dirs(): + if not os.path.exists(PARSED_DIR): + os.mkdir(PARSED_DIR) def main(): while True: try: + check_dirs() + print("BEGIN run_session();") run_session() print("END run_session();")