From 43d63183a125b431300e09a1a7838dab542c2645 Mon Sep 17 00:00:00 2001 From: Matt Allen Date: Sun, 15 Sep 2024 15:27:03 -0500 Subject: [PATCH] Fix missing file error --- src/parser/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/__init__.py b/src/parser/__init__.py index adf781b..7b7b973 100644 --- a/src/parser/__init__.py +++ b/src/parser/__init__.py @@ -71,6 +71,7 @@ def get_directories(self, county, test): def get_list_of_html(self, case_html_path, case_number, county, test): # This will loop through the html in the folder they were scraped to. + os.makedirs(case_html_path, exist_ok=True) case_html_list = os.listdir(case_html_path) # However, if an optional case number is passed to the function, then read in the case number html file from the data folder