Catch HTTPError properly in trailer search. fix #3388
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from string import digits, ascii_letters
|
||||
from urllib2 import HTTPError
|
||||
import re
|
||||
|
||||
from bs4 import SoupStrainer, BeautifulSoup
|
||||
@@ -7,6 +6,7 @@ from couchpotato.core.helpers.encoding import tryUrlencode
|
||||
from couchpotato.core.helpers.variable import mergeDicts, getTitle
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.core.media.movie.providers.trailer.base import TrailerProvider
|
||||
from requests import HTTPError
|
||||
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
Reference in New Issue
Block a user