Add time out to wallpaper command

This commit is contained in:
Luke Robles 2022-06-15 17:27:42 -07:00
parent 53117b5bcb
commit 75aabd6ff0

View File

@ -30,7 +30,7 @@ def get_wall(message):
else: else:
url = unsplash_url url = unsplash_url
response = requests.get(url).url response = requests.get(url, timeout=8).url
if "photo-1446704477871-62a4972035cd" in response: if "photo-1446704477871-62a4972035cd" in response:
return "Could not find an image for those tags." return "Could not find an image for those tags."