From e37a603632e532d3f36588b3212575e02939a702 Mon Sep 17 00:00:00 2001 From: Luc Charland Date: Thu, 4 Sep 2014 21:59:36 -0400 Subject: [PATCH] should help some builds that might timeout --- Tests/Integration/webdavlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/Integration/webdavlib.py b/Tests/Integration/webdavlib.py index 0e0f7c384..59aebff2e 100644 --- a/Tests/Integration/webdavlib.py +++ b/Tests/Integration/webdavlib.py @@ -106,7 +106,11 @@ class WebDAVClient: query.start = time.time() self.conn.request(query.method, query.url, body, self.prepare_headers(query, body)) - query.set_response(self.conn.getresponse()); + try: + query.set_response(self.conn.getresponse()); + except BadStatusLine: + time.sleep(3) + query.set_response(self.conn.getresponse()); query.duration = time.time() - query.start class HTTPSimpleQuery: