mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 05:25:54 +00:00
fixed global variable reference when ssl verification is off (#230)
* fixed global variable reference when ssl verification is off * moved 'global warned' to inside the function
This commit is contained in:
committed by
Greg Brockman
parent
15afd9c54a
commit
7708cf2bcb
@@ -25,6 +25,7 @@ class RequestsClient(object):
|
||||
self.session = requests.Session()
|
||||
|
||||
def request(self, method, url, headers, post_data=None, files=None):
|
||||
global warned
|
||||
kwargs = {}
|
||||
|
||||
# Really, really only turn this off while debugging.
|
||||
|
Reference in New Issue
Block a user