From 063ebb4504f679783abd4738e6828f4bb3b68dcd Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Sat, 30 Jul 2022 10:57:15 +0100 Subject: [PATCH] args.index no longer exists --- mwmbl/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwmbl/main.py b/mwmbl/main.py index 49e9d72..74acc91 100644 --- a/mwmbl/main.py +++ b/mwmbl/main.py @@ -36,7 +36,7 @@ def run(): if existing_index.page_size != PAGE_SIZE or existing_index.num_pages != NUM_PAGES: print(f"Existing index page sizes ({existing_index.page_size}) and number of pages " f"({existing_index.num_pages}) does not match - removing.") - os.remove(args.index) + os.remove(index_path) existing_index = None except FileNotFoundError: existing_index = None