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();")