quote the HEAD

This commit is contained in:
Paul Gauthier 2023-08-09 18:51:11 -03:00
parent fb80377d18
commit 529079ec01
2 changed files with 9 additions and 7 deletions

View file

@ -348,12 +348,14 @@ def find_original_update_blocks(content):
if current_filename:
filename = current_filename
else:
raise ValueError(f"Bad/missing filename. It should go right above {HEAD}")
raise ValueError(
f"Bad/missing filename. It should go right above the {HEAD}"
)
except IndexError:
if current_filename:
filename = current_filename
else:
raise ValueError(f"Bad/missing filename. It should go right above {HEAD}")
raise ValueError(f"Bad/missing filename. It should go right above the {HEAD}")
current_filename = filename