Skip to content

Commit

Permalink
Add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Oct 8, 2023
1 parent 1df561e commit 017e9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BardModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def process_request(self, request_response: RequestResponseContainer) -> None:
image_bytes = None
if request_response.image_url:
logging.info("Downloading user image")
image_bytes = requests.get(request_response.image_url).content
image_bytes = requests.get(request_response.image_url, timeout=120).content

# Ask Bard
logging.info("Asking Bard...")
Expand Down

0 comments on commit 017e9c1

Please sign in to comment.