added EOFError to rdata
This commit is contained in:
@@ -936,10 +936,10 @@ def rowhascoordinates(row):
|
||||
def rdata(file,rower=rrower()):
|
||||
try:
|
||||
res = rrdata(csvfile=file,rower=rower)
|
||||
except (IOError, IndexError):
|
||||
except (IOError, IndexError, EOFError):
|
||||
try:
|
||||
res = rrdata(csvfile=file+'.gz',rower=rower)
|
||||
except (IOError, IndexError):
|
||||
except (IOError, IndexError, EOFError):
|
||||
res = 0
|
||||
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user