1. Erik Svensson
  2. transmissionrpc
  3. Issues
Issue #21 resolved

Exception in DefaultHTTPHandler

gazpachoking
created an issue

Small issue with DefaultHTTPHandler. Seems as though whatever URLError transmissionrpc received only had a tuple of length 1 in error.reason.args. (This traceback comes from FlexGet bug report #685)

{{{ Traceback (most recent call last): File "/opt/local/lib/python2.5/site-packages/FlexGet-1.0r1419-py2.5.egg/flexget/feed.py", line 338, in run_event method(self) File "/opt/local/lib/python2.5/site-packages/FlexGet-1.0r1419-py2.5.egg/flexget/plugin.py", line 279, in call return getattr(self.plugin.instance, self.method_name)(args, kwargs) File "/opt/local/lib/python2.5/site-packages/FlexGet-1.0r1419-py2.5.egg/flexget/plugins/output_transmissionrpc.py", line 51, in new_f f(self, args, **kwargs) File "/opt/local/lib/python2.5/site-packages/FlexGet-1.0r1419-py2.5.egg/flexget/plugins/output_transmissionrpc.py", line 113, in on_process_start self.client = self.create_rpc_client(feed) File "/opt/local/lib/python2.5/site-packages/FlexGet-1.0r1419-py2.5.egg/flexget/plugins/output_transmissionrpc.py", line 217, in create_rpc_client cli = transmissionrpc.Client(config['host'], config['port'], user, password) File "build/bdist.linux-ppc/egg/transmissionrpc/transmission.py", line 281, in init__ self.get_session() File "build/bdist.linux-ppc/egg/transmissionrpc/transmission.py", line 687, in get_session self._request('session-get', timeout=timeout) File "build/bdist.linux-ppc/egg/transmissionrpc/transmission.py", line 359, in _request http_data = self._http_query(query, timeout) File "build/bdist.linux-ppc/egg/transmissionrpc/transmission.py", line 324, in _http_query result = self.http_handler.request(self.url, query, headers, timeout) File "build/bdist.linux-ppc/egg/transmissionrpc/transmission.py", line 220, in request raise HTTPHandlerError(httpcode=error.reason.args[0], httpmsg=error.reason.args[1]) IndexError: tuple index out of range }}}

Comments (2)

  1. Log in to comment