From a1a8f860d3e376bafefa844591c7edb9d0fe7917 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Dec 2023 18:08:33 -0600 Subject: [PATCH] requests lib futureproofing --- scripts/spartan/Worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/spartan/Worker.py b/scripts/spartan/Worker.py index 5d291d2..2751352 100644 --- a/scripts/spartan/Worker.py +++ b/scripts/spartan/Worker.py @@ -140,8 +140,8 @@ class Worker: raise InvalidWorkerResponse("Worker address cannot be None") # auth - self.user = user - self.password = password + self.user = str(user) # casting these "prevents future issues with requests" + self.password = str(password) # requests session self.session = requests.Session()