added check before trying to delete/dismiss file

This commit is contained in:
Philip Eisenlohr 2015-06-06 11:18:39 +00:00
parent 129446e687
commit 83d5686995
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ASCIItable():
# ------------------------------------------------------------------
def output_close(self, dismiss = False):
self.__IO__['out'].close()
if dismiss: os.remove(self.__IO__['out'].name)
if dismiss and os.path.isfile(self.__IO__['out'].name): os.remove(self.__IO__['out'].name)
# ------------------------------------------------------------------
def head_read(self):