Skip to content

Commit 8dbf4bc

Browse files
walker-jCharlesworth
authored andcommitted
Fix: expect 204 response on 'controls/reset_errors' success
1 parent 9696f22 commit 8dbf4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evasdk/eva_http_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def control_stop_loop(self, wait_for_ready=True):
382382

383383
def control_reset_errors(self, wait_for_ready=True):
384384
r = self.api_call_with_auth('POST', 'controls/reset_errors')
385-
if r.status_code != 200:
385+
if r.status_code != 204:
386386
eva_error('control_reset_errors error', r)
387387
elif wait_for_ready:
388388
time.sleep(0.1) # sleep for small period to avoid race condition between updating cache and reading state

0 commit comments

Comments
 (0)