mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Remove replicated code
This commit is contained in:
@@ -11,5 +11,4 @@ class GetRequest:
|
||||
if headers is None:
|
||||
headers = {}
|
||||
response = requests.get(url, headers=headers)
|
||||
response.raise_for_status()
|
||||
return response.json() if json else response.text
|
||||
|
||||
Reference in New Issue
Block a user