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"):
|
if (file=="stdin"):
|
||||||
inputFile=sys.stdin
|
inputFile=sys.stdin
|
||||||
else:
|
else:
|
||||||
inputFile=open(file, "rU")
|
try:
|
||||||
try: loc = self.pos_in_file[file]
|
inputFile=open(file, "rU")
|
||||||
|
loc = self.pos_in_file[file]
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
# Read input file into class and close file
|
# Read input file into class and close file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user