Skip to content

Commit

Permalink
added socket error to list of things that can go wrong on client end
Browse files Browse the repository at this point in the history
  • Loading branch information
natevw committed Feb 16, 2011
1 parent 6a08262 commit a4d1a63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _attachments/rqms.py
@@ -1,6 +1,7 @@
'''Python client library for RQMS'''

import httplib
from socket import error as socket_error
from urlparse import urlparse
import json
from collections import deque
Expand All @@ -27,6 +28,8 @@ def _try(self, method, *args, **kwargs):
while True:
try:
return getattr(self, '_'+method)(*args, **kwargs)
except socket_error as e:
pass
except httplib.HTTPException as e:
pass
except IOError as e:
Expand Down

0 comments on commit a4d1a63

Please sign in to comment.