From c6f82dac01545789528c524d91ac532ba04d5290 Mon Sep 17 00:00:00 2001 From: Luc Charland Date: Thu, 4 Sep 2014 22:24:32 -0400 Subject: [PATCH] catch specific exception --- Tests/Integration/webdavlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/Integration/webdavlib.py b/Tests/Integration/webdavlib.py index 59aebff2e..4d3d8311d 100644 --- a/Tests/Integration/webdavlib.py +++ b/Tests/Integration/webdavlib.py @@ -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