diff --git a/updateIndex.py b/updateIndex.py index e71cc58af016b2116e1682f8e8fb35bb925ec481..516ea0b3769173a221745af68c238d2abf164de9 100644 --- a/updateIndex.py +++ b/updateIndex.py @@ -35,7 +35,8 @@ def updateIndex(args:argparse.Namespace) -> None: element_to_delete.decompose() else: print("Element not found.") - + elif soup.find('li', text=args.documentName): + print("'index.html' does already contain the entry") else: # Find document list # Assume there's a list (<ul>) with id "document-list"