diff --git a/html_to_django/converter.py b/html_to_django/converter.py index 1112a02..9eba620 100644 --- a/html_to_django/converter.py +++ b/html_to_django/converter.py @@ -50,6 +50,8 @@ def convert_file(path: str, overwrite: bool = False) -> None: if not (os.path.exists(path) and os.path.isfile(path)): raise FileNotFoundError + print("moving the code around") + with open(path, "r") as file: soup = bs4.BeautifulSoup(file, "html.parser") @@ -58,6 +60,8 @@ def convert_file(path: str, overwrite: bool = False) -> None: for formatter in formatters: formatter.format(soup) + print("even in between") + if overwrite: out_path = path else: