Skip to content

Commit

Permalink
catch ValueError for wrong URLs (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
afeena authored Jul 11, 2018
1 parent 7634cb8 commit a119e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a119e8e

Please sign in to comment.