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