feat: check dir before run_session

This commit is contained in:
2026-03-18 22:20:14 +03:00
parent 1199ce1554
commit 80d3c06310

View File

@@ -230,10 +230,15 @@ def run_session():
except Exception as e: except Exception as e:
print(f"Error deleting directory '{DIRNAME}': {e}") print(f"Error deleting directory '{DIRNAME}': {e}")
def check_dirs():
if not os.path.exists(PARSED_DIR):
os.mkdir(PARSED_DIR)
def main(): def main():
while True: while True:
try: try:
check_dirs()
print("BEGIN run_session();") print("BEGIN run_session();")
run_session() run_session()
print("END run_session();") print("END run_session();")