added EOFError to rdata
This commit is contained in:
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -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