khal
khal copied to clipboard
delete temporarily created ics files
I noticed khal creates temporary files during the import and doesn't clean them.
os.link (renaming from temp file to destination) raises an exception when there's already an event with the same uid. This pollutes my calendar folder with uid.ics-(some-random-letters) files.
This PR unlinks those files that failed for updating the calendar events.