mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
catch specific exception
This commit is contained in:
1 parent
e37a603632
commit
c6f82dac01
1 file changed
+2
-1
@@ -108,7 +108,8 @@ class WebDAVClient:
|
||||
body, self.prepare_headers(query, body))
|
||||
try:
|
||||
query.set_response(self.conn.getresponse());
|
||||
except BadStatusLine:
|
||||
except httplib.BadStatusLine, e:
|
||||
print e
|
||||
time.sleep(3)
|
||||
query.set_response(self.conn.getresponse());
|
||||
query.duration = time.time() - query.start
|
||||
|
||||
Reference in new issue
Block a user