From 87d63787686041d744293463a84e638d35d1e9d1 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 15 Dec 2018 12:37:22 -0500 Subject: [PATCH] Remove superfluous try..except --- libs/utorrent/client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/utorrent/client.py b/libs/utorrent/client.py index 3d439084..ac6e2328 100644 --- a/libs/utorrent/client.py +++ b/libs/utorrent/client.py @@ -140,8 +140,5 @@ class UTorrentClient(object): if content_type: request.add_header('Content-type', content_type) - try: - response = self.opener.open(request) - return response.code, json.loads(response.read()) - except urllib2.HTTPError,e: - raise \ No newline at end of file + response = self.opener.open(request) + return response.code, json.loads(response.read())