From 7c49377410709dcd91da35d229fc274123f19091 Mon Sep 17 00:00:00 2001
From: William McBrine
pyTivo was unable to connect to the TiVo at %s.
This is most likely caused by an incorrect Media Access Key. Please return to the Settings page and -double check your tivo_mak setting.
""" +double check your tivo_mak setting.%s""" # Preload the templates def tmpl(name): @@ -129,7 +129,7 @@ class ToGo(Plugin): try: page = self.tivo_open(theurl) except IOError, e: - handler.redir(UNABLE % tivoIP, 10) + handler.redir(UNABLE % (tivoIP, e), 10) return tivo_cache[theurl] = {'thepage': minidom.parse(page), 'thepage_time': time.time()} @@ -268,13 +268,9 @@ class ToGo(Plugin): handle = self.tivo_open(url + '&Format=video/x-tivo-mpeg-ts') else: handle = self.tivo_open(url) - except urllib2.HTTPError, e: - status[url]['running'] = False - status[url]['error'] = e.code - return - except urllib2.URLError, e: + except Exception, msg: status[url]['running'] = False - status[url]['error'] = e.reason + status[url]['error'] = str(msg) return tivo_name = config.tivo_names[config.tivos_by_ip(tivoIP)] -- 2.11.4.GIT