import should stop erroring out and crashing if a file it wanted to read has been deleted
This commit is contained in:
parent
cda897608c
commit
3c9f5537ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user