From e6a19cb5c9db39f00eb83cf0ae48edc85878e08e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 6 Nov 2018 15:28:29 +0100 Subject: ugh --- util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.py') 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 -- cgit v1.2.3-70-g09d2