catch specific exception

pull/52/head
Luc Charland 2014-09-04 22:24:32 -04:00
parent e37a603632
commit c6f82dac01
1 changed files with 2 additions and 1 deletions

View File

@ -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