From 75aabd6ff072418a8ee902f7baf3bd905de43856 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Wed, 15 Jun 2022 17:27:42 -0700 Subject: [PATCH] Add time out to wallpaper command --- app/wallpaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wallpaper.py b/app/wallpaper.py index 6b64ab6b..c57f9e32 100755 --- a/app/wallpaper.py +++ b/app/wallpaper.py @@ -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."