Private
Public Access
1
0

added EOFError to rdata

This commit is contained in:
Sander Roosendaal
2019-09-16 15:23:22 +02:00
parent 0001d0af97
commit 9ce6d67833
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -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