cannot override an existing dictionary in upgrade
This commit is contained in:
parent
12111397e6
commit
0e55679e8b
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ class RougailUpgrade:
|
|||
for filename in filenames:
|
||||
xmlsrc = join(srcfolder, filename)
|
||||
xmldst = join(dstfolder, filename)
|
||||
if isfile(xmldst):
|
||||
raise Exception(f'cannot update "{xmlsrc}" destination file "{xmldst}" already exists')
|
||||
try:
|
||||
parser = XMLParser(remove_blank_text=True)
|
||||
document = parse(xmlsrc, parser)
|
||||
|
|
Loading…
Reference in a new issue