From a119e8e2a1e626e9b482840d797e00522241fd99 Mon Sep 17 00:00:00 2001 From: Evgeniia Date: Wed, 11 Jul 2018 13:55:48 +0200 Subject: [PATCH] catch ValueError for wrong URLs (#151) --- clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clone.py b/clone.py index f43dde4e..43035550 100644 --- a/clone.py +++ b/clone.py @@ -149,7 +149,7 @@ async def get_body(self, session): content_type = response.content_type data = await response.read() - except (aiohttp.ClientError, asyncio.TimeoutError) as client_error: + except (ValueError,aiohttp.ClientError, asyncio.TimeoutError) as client_error: print(client_error) else: await response.release()