reset refresh counter on success

This commit is contained in:
aj 2020-07-29 10:46:09 +01:00
parent bbbfd6bc01
commit 18fbedf115

View File

@ -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