Skip to content

Commit

Permalink
Fix wrong exception name error
Browse files Browse the repository at this point in the history
  • Loading branch information
kk7ds committed Feb 14, 2016
1 parent b4b3f3b commit 150dc4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvcclient/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def _safe_request(self, *args, **kwargs):
conn.request(*args, **kwargs)
return conn.getresponse()
except OSError:
raise CameraConnectionError('Unable to contact camera')
raise CameraConnectError('Unable to contact camera')
except httplib.HTTPException as ex:
raise CameraConnectionError('Error connecting to camera: %s' % (
raise CameraConnectError('Error connecting to camera: %s' % (
str(ex)))

def login(self):
Expand Down

0 comments on commit 150dc4e

Please sign in to comment.