From 236d10bd17a4c074545c35bb4f9d614a394b95c5 Mon Sep 17 00:00:00 2001 From: JayHuLBL Date: Fri, 12 Apr 2024 13:23:30 -0700 Subject: [PATCH] reverted back the length check --- pyfunnel/pyfunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfunnel/pyfunnel.py b/pyfunnel/pyfunnel.py index 3b7157a..9ce78c3 100755 --- a/pyfunnel/pyfunnel.py +++ b/pyfunnel/pyfunnel.py @@ -89,7 +89,7 @@ data[s] = dict(x=[], y=[]) with open(vars(args)[s]) as csvfile: spamreader = csv.reader(csvfile) - if (len(spamreader[0]) != 2): + if (len(next(spamreader)) != 2): raise IOError("The {} CSV file must have exactly two columns.".format(s)) for row in spamreader: try: