Skip to content

Commit

Permalink
reverted back the length check
Browse files Browse the repository at this point in the history
  • Loading branch information
JayHuLBL committed Apr 12, 2024
1 parent 27d7fd1 commit 236d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfunnel/pyfunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 236d10b

Please sign in to comment.