Skip to content

Commit

Permalink
Fix: expect 204 response on 'controls/reset_errors' success
Browse files Browse the repository at this point in the history
  • Loading branch information
walker-j authored and Charlesworth committed Dec 4, 2019
1 parent 9696f22 commit 8dbf4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evasdk/eva_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def control_stop_loop(self, wait_for_ready=True):

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

0 comments on commit 8dbf4bc

Please sign in to comment.