Skip to content

Sometimes the NPO-page does not return valid content#2232

Merged
cvium merged 1 commit intoFlexget:developfrom
mfonville:master
Oct 25, 2018
Merged

Sometimes the NPO-page does not return valid content#2232
cvium merged 1 commit intoFlexget:developfrom
mfonville:master

Conversation

@mfonville
Copy link
Copy Markdown
Contributor

and then _get_series_info() does fail, with a critical error.
This fix avoids the critical error, and will just make it skip only this serie.

Original error that would sometimes occur:
BUG: Unhandled error in plugin npo_watchlist: 'NoneType' object has no attribute 'find' flexget/plugins/input/npo_watchlist.py", line 181, in _get_series_info 'npo_name': series.find('h1').text, AttributeError: 'NoneType' object has no attribute 'find'

and then _get_series_info() does fail, with a critical error.
This fix avoids the critical error, and will just make it skip only this serie.

Original error:
BUG: Unhandled error in plugin npo_watchlist: 'NoneType' object has no attribute 'find'
flexget/plugins/input/npo_watchlist.py", line 181, in _get_series_info
    'npo_name': series.find('h1').text,
AttributeError: 'NoneType' object has no attribute 'find'
@mfonville
Copy link
Copy Markdown
Contributor Author

Could this please be merged?

@cvium cvium changed the base branch from master to develop October 25, 2018 18:29
@cvium cvium merged commit 9a2845f into Flexget:develop Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants