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 0e83d35 commit 8c97249Copy full SHA for 8c97249
neo/rawio/spikegadgetsrawio.py
@@ -122,11 +122,11 @@ def _parse_header(self):
122
if b"</Configuration>" in line:
123
header_size = f.tell()
124
break
125
- if line == "" and f.tell() == end_of_file:
+ if line == b"" and f.tell() == end_of_file:
126
127
128
if header_size is None:
129
- ValueError("SpikeGadgets: the xml header does not contain '</Configuration>'")
+ raise ValueError("SpikeGadgets: the xml header does not contain '</Configuration>'")
130
131
f.seek(0)
132
header_txt = f.read(header_size).decode("utf8")
0 commit comments