Fix PyLint: Consider explicitly re-raising

This commit is contained in:
Ivan Kravets committed 2022-07-02 18:37:57 +03:00
1 parent f01cd7570c
commit 19d518fc4c
45 files changed
+136 -138

No files matched your search

+3 -3
View File
@@ -274,11 +274,11 @@ class MPDataPusher(object):
)
r.raise_for_status()
return True
except requests.exceptions.HTTPError as e:
except requests.exceptions.HTTPError as exc:
# skip Bad Request
if 400 >= e.response.status_code < 500:
if 400 >= exc.response.status_code < 500:
return True
except: # pylint: disable=W0702
except: # pylint: disable=bare-except
pass
self._http_offline = True
return False