aboutsummaryrefslogtreecommitdiff
path: root/uploader/monadic_requests.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-29 13:19:53 -0500
committerFrederick Muriuki Muriithi2024-08-05 09:52:17 -0500
commit09642e11e318d149cf628d6b536e04443845665d (patch)
tree3eb85b123296b6195d10ca575956e19a8401b9b5 /uploader/monadic_requests.py
parent889ff3116c8e412bb8bf969bd9484269ee716cb0 (diff)
downloadgn-uploader-09642e11e318d149cf628d6b536e04443845665d.tar.gz
mypy and pylint fixes.
Diffstat (limited to 'uploader/monadic_requests.py')
-rw-r--r--uploader/monadic_requests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/monadic_requests.py b/uploader/monadic_requests.py
index d679fd3..f0a60f4 100644
--- a/uploader/monadic_requests.py
+++ b/uploader/monadic_requests.py
@@ -17,7 +17,7 @@ def get(url, params=None, **kwargs) -> Either:
if resp.status_code in SUCCESS_CODES:
return Right(resp.json())
return Left(resp)
- except requests.exceptions.RequestException as _exc:
+ except requests.exceptions.RequestException as exc:
return Left(exc)
@@ -34,5 +34,5 @@ def post(url, data=None, json=None, **kwargs) -> Either:
if resp.status_code in SUCCESS_CODES:
return Right(resp.json())
return Left(resp)
- except requests.exceptions.RequestException as _exc:
+ except requests.exceptions.RequestException as exc:
return Left(exc)