kappapiana / anonymize

A script to change authorship to ODT and DOCX comments, redlines and whatnot.
26 stars 5 forks source link

deal with exception when a file doesn't exist #16

Closed kappapiana closed 2 years ago

kappapiana commented 2 years ago

@yamanq this is a rough way I tried to handle the missing file exception. I'm sure there is a better way. Would you please check if it makes sense? Fixes #15 @alpianon

yamanq commented 2 years ago

This looks like it would work. I wrote an alternate way that checks at the start of the program and outputs a warning if the internal files (document.xml, comments.xml) are not found and an error if the file itself could not be found. See #17