We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e36e376 commit 2ae3de5Copy full SHA for 2ae3de5
can/__init__.py
@@ -8,7 +8,7 @@
8
9
import logging
10
11
-__version__ = "3.3.3-alpha.1"
+__version__ = "3.3.3-alpha.2"
12
13
log = logging.getLogger('can')
14
can/io/csv.py
@@ -91,7 +91,11 @@ def __init__(self, file):
91
92
def __iter__(self):
93
# skip the header line
94
- next(self.file)
+ try:
95
+ next(self.file)
96
+ except StopIteration:
97
+ # don't crash on a file with only a header
98
+ return
99
100
for line in self.file:
101
0 commit comments