Skip to content

Commit 55a957c

Browse files
author
Axel Dahlberg
committed
Removed unnessesary exception check
1 parent df34696 commit 55a957c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qlinklayer/datacollection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ def getData(self, time, source=None):
224224
create_id, ent_id, _, _, _, _ = MeasureAfterSuccessScenario.unpack_cqc_ok(ok)
225225
ok_type = EntInfoCreateKeepHeader.type
226226
# TODO the bitstring.ReadError should occur but this needs to be fixed in SimulaQron
227-
except (ValueError, bitstring.ReadError):
227+
except ValueError:
228228
try:
229229
create_id, ent_id, _, _, _, _ = MeasureBeforeSuccessScenario.unpack_cqc_ok(ok)
230230
ok_type = EntInfoMeasDirectHeader.type
231-
except (ValueError, bitstring.ReadError):
231+
except ValueError:
232232
raise ValueError("Unknown OK type")
233233
origin_id = ent_id[0]
234234

0 commit comments

Comments
 (0)