fixing main and build updates
Some checks failed
Build and Deploy Docker Container / build-and-deploy (push) Failing after 4s

This commit is contained in:
2025-09-21 16:12:03 +02:00
parent 3c5dcc6ac2
commit 8904da50dc
2 changed files with 19 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ messages = {
}
def get_tenor_img(search_term: str = "420") -> str:
def get_tenor_img(search_term: str = "420") -> str | None:
results = []
try:
results = search_tenor(search_term=search_term)
@@ -77,6 +77,7 @@ def search_tenor(search_term: str = "420") -> list:
data = response.json()
if data["results"]:
return data["results"]
return []
except requests.RequestException as e:
logging.error(f"Error fetching Tenor GIF: {e}")
return []