We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03e6026 commit c440f40Copy full SHA for c440f40
1 file changed
edge_impulse_linux/runner.py
@@ -99,7 +99,10 @@ def send_msg(self, msg):
99
if (not resp is None):
100
break
101
102
- if (not resp or resp["id"] != ix):
+ if (resp is None):
103
+ raise Exception('No data or corrupted data received')
104
+
105
+ if (resp["id"] != ix):
106
raise Exception('Wrong id, expected: ' + str(ix) + ' but got ' + resp["id"])
107
108
if not resp["success"]:
0 commit comments