Skip to content

Commit 2b15f17

Browse files
committed
Undo formatting changes, but keep the missing +
1 parent cc7ce3c commit 2b15f17

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

custom_components/sensor/plex_recently_added.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,5 @@ def get_info(title):
367367
tmdb_url = requests.get('https://api.themoviedb.org/3/search/movie?'
368368
+ 'api_key=1f7708bb9a218ab891a5d438b1b63992&query='
369369
+ title)
370-
try:
371-
tmdb_json = tmdb_url.json()['results'][0]['overview']
372-
except:
373-
_LOGGER.warning("Failed to get information from TMDB")
374-
return tmdb_json
370+
tmdb_json = tmdb_url.json()
371+
return tmdb_json['results'][0]['overview']

0 commit comments

Comments
 (0)