Private GIT

Skip to content
Snippets Groups Projects
Commit f5301609 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1913 from adrianmoisey/kodi_notification

Also catch BadStatusLine
parents 44403bb6 89aec2fa
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
import httplib
import urllib
import urllib2
import socket
......@@ -385,7 +386,7 @@ class KODINotifier:
try:
response = urllib2.urlopen(req)
except urllib2.URLError, e:
except (httplib.BadStatusLine, urllib2.URLError), e:
logger.log(u"Error while trying to retrieve KODI API version for " + host + ": " + ex(e),
logger.WARNING)
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment