summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'util.py')
-rw-r--r--util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.py b/util.py
index a1575db7..8313b60c 100644
--- a/util.py
+++ b/util.py
@@ -19,6 +19,8 @@ def unfussy_reader(reader):
while True:
try:
yield next(reader)
+ except StopIteration:
+ return
except csv.Error:
print(csv.Error)
# log the problem or whatever