Skip to content

Commit 0442b84

Browse files
Display query in the URL on failed request
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent 842b3ed commit 0442b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/hackingBuddyGPT/capabilities/http_request.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __call__(
6767
allow_redirects=self.follow_redirects,
6868
)
6969
except requests.exceptions.RequestException as e:
70-
url = self.host + ("" if path.startswith("/") else "/") + path + ("?{query}" if query else "")
70+
url = self.host + ("" if path.startswith("/") else "/") + path + (f"?{query}" if query else "")
7171
return f"Could not request '{url}': {e}"
7272

7373
response_headers = "\r\n".join(f"{k}: {v}" for k, v in resp.headers.items())

0 commit comments

Comments
 (0)