浏览代码

args.index no longer exists

Daoud Clarke 3 年之前
父节点
当前提交
063ebb4504
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mwmbl/main.py

+ 1 - 1
mwmbl/main.py

@@ -36,7 +36,7 @@ def run():
         if existing_index.page_size != PAGE_SIZE or existing_index.num_pages != NUM_PAGES:
         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 "
             print(f"Existing index page sizes ({existing_index.page_size}) and number of pages "
                   f"({existing_index.num_pages}) does not match - removing.")
                   f"({existing_index.num_pages}) does not match - removing.")
-            os.remove(args.index)
+            os.remove(index_path)
             existing_index = None
             existing_index = None
     except FileNotFoundError:
     except FileNotFoundError:
         existing_index = None
         existing_index = None