import should stop erroring out and crashing if a file it wanted to read has been deleted

This commit is contained in:
eblade 2009-02-25 12:40:39 -05:00
parent cda897608c
commit 3c9f5537ea

View File

@ -235,8 +235,9 @@ class Importer:
if (file=="stdin"):
inputFile=sys.stdin
else:
inputFile=open(file, "rU")
try: loc = self.pos_in_file[file]
try:
inputFile=open(file, "rU")
loc = self.pos_in_file[file]
except: pass
# Read input file into class and close file