summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-06 15:28:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-06 15:28:29 +0100
commite6a19cb5c9db39f00eb83cf0ae48edc85878e08e (patch)
tree2fa0da69aacc6a4ed7a15f6957f56d1ac4aa4692 /util.py
parent437c25891d7c8e2101b8bff9a72f8f9a866069d9 (diff)
ugh
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