Skip to content

Commit

Permalink
Ensure we have always a default index value for rolling backup names
Browse files Browse the repository at this point in the history
  • Loading branch information
ilodev committed Nov 14, 2023
1 parent 1ff0ffb commit 6d81695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/export_ms2.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_next_backup_filename(filepath):
return os.path.join(sfolder,sname + '~1' + sext)
else:
# files found, find all the file suffix numbers
file_suffixes = []
file_suffixes = [0,]

for file in prefixed:
regex_match = re.match(sname + "~(\d+)", file)
Expand Down

0 comments on commit 6d81695

Please sign in to comment.