Add time out to wallpaper command
This commit is contained in:
parent
8a07f71c20
commit
8fec94142f
@ -30,7 +30,7 @@ def get_wall(message):
|
||||
else:
|
||||
url = unsplash_url
|
||||
|
||||
response = requests.get(url).url
|
||||
response = requests.get(url, timeout=8).url
|
||||
|
||||
if "photo-1446704477871-62a4972035cd" in response:
|
||||
return "Could not find an image for those tags."
|
||||
|
Loading…
x
Reference in New Issue
Block a user