Skip to content

Commit

Permalink
add success message
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Sep 22, 2019
1 parent 9117e5d commit 96d56fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csv2cmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from xml.etree.ElementTree import Element, SubElement, Comment, ElementTree

__license__ = "MIT"
__version__ = '2.0.1'
__version__ = '2.0.2'

# define log output
logging.basicConfig(format='%(levelname)s: %(message)s')
Expand Down Expand Up @@ -591,5 +591,6 @@ def processPlace(letter, correspondent):

try:
tree.write(outFile, encoding="utf-8", xml_declaration=True, method="xml")
print('CMI file written to', outFile)
except PermissionError:
logging.error('Could not save the file due to insufficient permission')

0 comments on commit 96d56fa

Please sign in to comment.