Skip to content

Commit 8c97249

Browse files
committed
feedback from @MGAMZ
1 parent 0e83d35 commit 8c97249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/spikegadgetsrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ def _parse_header(self):
122122
if b"</Configuration>" in line:
123123
header_size = f.tell()
124124
break
125-
if line == "" and f.tell() == end_of_file:
125+
if line == b"" and f.tell() == end_of_file:
126126
break
127127

128128
if header_size is None:
129-
ValueError("SpikeGadgets: the xml header does not contain '</Configuration>'")
129+
raise ValueError("SpikeGadgets: the xml header does not contain '</Configuration>'")
130130

131131
f.seek(0)
132132
header_txt = f.read(header_size).decode("utf8")

0 commit comments

Comments
 (0)