diff -Nru aioxmlrpc-0.3/aioxmlrpc/client.py aioxmlrpc-0.4/aioxmlrpc/client.py --- aioxmlrpc-0.3/aioxmlrpc/client.py 2016-06-16 14:05:12.000000000 +0000 +++ aioxmlrpc-0.4/aioxmlrpc/client.py 2017-03-30 07:42:16.000000000 +0000 @@ -73,12 +73,20 @@ if response.status != 200: raise ProtocolError(url, response.status, body, response.headers) + except asyncio.CancelledError: + raise except ProtocolError: raise except Exception as exc: log.error('Unexpected error', exc_info=True) - raise ProtocolError(url, response.status, - str(exc), response.headers) + if response is not None: + errcode = response.status + headers = response.headers + else: + errcode = 0 + headers = {} + + raise ProtocolError(url, errcode, str(exc), headers) return self.parse_response(body) def parse_response(self, body): diff -Nru aioxmlrpc-0.3/aioxmlrpc/__init__.py aioxmlrpc-0.4/aioxmlrpc/__init__.py --- aioxmlrpc-0.3/aioxmlrpc/__init__.py 2016-06-16 14:05:52.000000000 +0000 +++ aioxmlrpc-0.4/aioxmlrpc/__init__.py 2017-03-30 11:49:43.000000000 +0000 @@ -2,4 +2,4 @@ XML-RPC Protocol for ``asyncio`` """ -__version__ = '0.3' +__version__ = '0.4' diff -Nru aioxmlrpc-0.3/aioxmlrpc/tests/test_client.py aioxmlrpc-0.4/aioxmlrpc/tests/test_client.py --- aioxmlrpc-0.3/aioxmlrpc/tests/test_client.py 2016-06-16 14:05:12.000000000 +0000 +++ aioxmlrpc-0.4/aioxmlrpc/tests/test_client.py 2017-03-30 07:42:16.000000000 +0000 @@ -128,3 +128,28 @@ self.assertEqual(response, 1) self.assertIs(self.loop, client._loop) self.assertTrue(transp._connector.close.called) + + +@asyncio.coroutine +def failing_request(*args, **kwargs): + raise OSError + + +class HTTPErrorTestCase(TestCase): + + def setUp(self): + self.loop = asyncio.new_event_loop() + asyncio.set_event_loop(None) + self.aiohttp_request = mock.patch('aiohttp.request', new=failing_request) + self.aiohttp_request.start() + + def tearDown(self): + self.aiohttp_request.stop() + + def test_http_error(self): + from aioxmlrpc.client import ServerProxy, ProtocolError + client = ServerProxy('http://nonexistent/nonexistent', loop=self.loop) + self.assertRaises(ProtocolError, + self.loop.run_until_complete, + client.name.space.proxfyiedcall() + ) diff -Nru aioxmlrpc-0.3/aioxmlrpc.egg-info/PKG-INFO aioxmlrpc-0.4/aioxmlrpc.egg-info/PKG-INFO --- aioxmlrpc-0.3/aioxmlrpc.egg-info/PKG-INFO 2016-06-16 14:06:19.000000000 +0000 +++ aioxmlrpc-0.4/aioxmlrpc.egg-info/PKG-INFO 2017-03-30 11:54:27.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: aioxmlrpc -Version: 0.3 +Version: 0.4 Summary: XML-RPC client for asyncio Home-page: https://github.com/mardiros/aioxmlrpc Author: Guillaume Gauvrit @@ -65,6 +65,12 @@ Changelog ========= + 0.4 released on 2017-03-30 + -------------------------- + + * Fix NXDOMAIN Exception handling (Vladimir Rutsky) + * Fix cancel of futures handling (Gustavo Tavares Cabral) + 0.3 released on 2016-06-16 -------------------------- diff -Nru aioxmlrpc-0.3/aioxmlrpc.egg-info/SOURCES.txt aioxmlrpc-0.4/aioxmlrpc.egg-info/SOURCES.txt --- aioxmlrpc-0.3/aioxmlrpc.egg-info/SOURCES.txt 2016-06-16 14:06:19.000000000 +0000 +++ aioxmlrpc-0.4/aioxmlrpc.egg-info/SOURCES.txt 2017-03-30 11:54:27.000000000 +0000 @@ -1,4 +1,5 @@ CHANGES.rst +CONTRIBUTORS.rst LICENSE MANIFEST.in README.rst diff -Nru aioxmlrpc-0.3/CHANGES.rst aioxmlrpc-0.4/CHANGES.rst --- aioxmlrpc-0.3/CHANGES.rst 2016-06-16 14:05:41.000000000 +0000 +++ aioxmlrpc-0.4/CHANGES.rst 2017-03-30 11:50:13.000000000 +0000 @@ -1,6 +1,12 @@ Changelog ========= +0.4 released on 2017-03-30 +-------------------------- + + * Fix NXDOMAIN Exception handling (Vladimir Rutsky) + * Fix cancel of futures handling (Gustavo Tavares Cabral) + 0.3 released on 2016-06-16 -------------------------- diff -Nru aioxmlrpc-0.3/CONTRIBUTORS.rst aioxmlrpc-0.4/CONTRIBUTORS.rst --- aioxmlrpc-0.3/CONTRIBUTORS.rst 1970-01-01 00:00:00.000000000 +0000 +++ aioxmlrpc-0.4/CONTRIBUTORS.rst 2017-03-30 11:53:08.000000000 +0000 @@ -0,0 +1,9 @@ +Contributors +============ + +A. Jesse Jiryu Davis +Gustavo Tavares Cabral +Vladimir Rutsky +nibrag +sayoun + diff -Nru aioxmlrpc-0.3/debian/changelog aioxmlrpc-0.4/debian/changelog --- aioxmlrpc-0.3/debian/changelog 2016-07-18 20:10:41.000000000 +0000 +++ aioxmlrpc-0.4/debian/changelog 2017-06-20 14:07:44.000000000 +0000 @@ -1,3 +1,10 @@ +aioxmlrpc (0.4-1) unstable; urgency=medium + + * New upstream release + * Standards-Version bumped to 4.0.0 (no changes needed) + + -- Piotr Ożarowski Tue, 20 Jun 2017 16:07:44 +0200 + aioxmlrpc (0.3-1) unstable; urgency=medium [ Ondřej Nový ] diff -Nru aioxmlrpc-0.3/debian/control aioxmlrpc-0.4/debian/control --- aioxmlrpc-0.3/debian/control 2016-07-18 20:10:16.000000000 +0000 +++ aioxmlrpc-0.4/debian/control 2017-06-20 14:07:27.000000000 +0000 @@ -7,7 +7,7 @@ python3-all, python3-setuptools, python3-aiohttp -Standards-Version: 3.9.8 +Standards-Version: 4.0.0 Homepage: https://github.com/mardiros/aioxmlrpc Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/aioxmlrpc.git Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/aioxmlrpc.git diff -Nru aioxmlrpc-0.3/debian/.git-dpm aioxmlrpc-0.4/debian/.git-dpm --- aioxmlrpc-0.3/debian/.git-dpm 2016-07-18 20:10:16.000000000 +0000 +++ aioxmlrpc-0.4/debian/.git-dpm 2017-06-20 14:07:09.000000000 +0000 @@ -1,11 +1,11 @@ # see git-dpm(1) from git-dpm package -48b18414377b2bdfee470325b612061467548e99 -48b18414377b2bdfee470325b612061467548e99 -48b18414377b2bdfee470325b612061467548e99 -48b18414377b2bdfee470325b612061467548e99 -aioxmlrpc_0.3.orig.tar.gz -ffa9bee201a939af617669c5629dc29795fccded -5465 +71c7ba02d8bae4a7929b388f2e540bba1e0a3bbe +71c7ba02d8bae4a7929b388f2e540bba1e0a3bbe +71c7ba02d8bae4a7929b388f2e540bba1e0a3bbe +71c7ba02d8bae4a7929b388f2e540bba1e0a3bbe +aioxmlrpc_0.4.orig.tar.gz +3512f1b22f96692ebd298f1980744ae4a83529eb +5730 debianTag="debian/%e%v" patchedTag="patched/%e%v" upstreamTag="upstream/%e%u" diff -Nru aioxmlrpc-0.3/LICENSE aioxmlrpc-0.4/LICENSE --- aioxmlrpc-0.3/LICENSE 2016-06-16 14:05:12.000000000 +0000 +++ aioxmlrpc-0.4/LICENSE 2017-03-30 11:50:55.000000000 +0000 @@ -1,4 +1,4 @@ -Copyright (c) 2014-2016, Guillaume Gauvrit and Contibutors +Copyright (c) 2014-2017, Guillaume Gauvrit and Contibutors All rights reserved. Redistribution and use in source and binary forms, with or without diff -Nru aioxmlrpc-0.3/PKG-INFO aioxmlrpc-0.4/PKG-INFO --- aioxmlrpc-0.3/PKG-INFO 2016-06-16 14:06:19.000000000 +0000 +++ aioxmlrpc-0.4/PKG-INFO 2017-03-30 11:54:27.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: aioxmlrpc -Version: 0.3 +Version: 0.4 Summary: XML-RPC client for asyncio Home-page: https://github.com/mardiros/aioxmlrpc Author: Guillaume Gauvrit @@ -65,6 +65,12 @@ Changelog ========= + 0.4 released on 2017-03-30 + -------------------------- + + * Fix NXDOMAIN Exception handling (Vladimir Rutsky) + * Fix cancel of futures handling (Gustavo Tavares Cabral) + 0.3 released on 2016-06-16 -------------------------- diff -Nru aioxmlrpc-0.3/setup.cfg aioxmlrpc-0.4/setup.cfg --- aioxmlrpc-0.3/setup.cfg 2016-06-16 14:06:19.000000000 +0000 +++ aioxmlrpc-0.4/setup.cfg 2017-03-30 11:54:27.000000000 +0000 @@ -1,5 +1,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0