reset refresh counter on success
This commit is contained in:
parent
bbbfd6bc01
commit
18fbedf115
@ -103,6 +103,7 @@ class Network:
|
|||||||
|
|
||||||
if 200 <= response.status_code < 300:
|
if 200 <= response.status_code < 300:
|
||||||
logger.debug(f'{method} {url_path or whole_url} {response.status_code}')
|
logger.debug(f'{method} {url_path or whole_url} {response.status_code}')
|
||||||
|
self.refresh_counter = 0
|
||||||
|
|
||||||
if response.status_code == 204:
|
if response.status_code == 204:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user