This commit is contained in:
Raeschen
2023-07-17 22:54:48 +02:00
parent 2203e76249
commit 6b0b2efbfb

View File

@@ -142,7 +142,7 @@ for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
print(' Deleting {0} (delete-after set)...'.format(fileName))
os.remove(fileName)
with open(monthFile, 'w', encoding='utf-8') as f:
with open(monthFile, 'w+', encoding='utf-8') as f:
yaml.dump(currentEntries, f, default_flow_style=False)
if errors: