Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Handle exception when api_bluray fails to get content #2468

Merged
merged 3 commits into from May 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion flexget/plugins/internal/api_bluray.py
Expand Up @@ -126,7 +126,11 @@ def __init__(self, title, year):
# Used for parsing some more data, sadly with soup
self.url = result['url']

movie_info_response = requests.get(self.url).content
try:
movie_info_response = requests.get(self.url).content
except (requests.RequestException, ConnectionError) as e:
raise LookupError('Couldn\'t connect to blu-ray.com. %s' % self.url)
BrutuZ marked this conversation as resolved.
Show resolved Hide resolved
break
BrutuZ marked this conversation as resolved.
Show resolved Hide resolved

movie_info = get_soup(movie_info_response)

Expand Down