Squish: Fix handling of server issues in tst_codepasting

...properly this time, I hope.

Change-Id: I4cf492f28c99fa15425c44f41656e6220f7a8715
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-07-26 12:49:32 +02:00
parent 28d1b6215c
commit c49f080458

View File

@@ -53,11 +53,11 @@ def closeHTTPStatusAndPasterDialog(protocol, pasterDialog):
if 'Service Unavailable' in text:
test.warning(text)
return True
test.log("Closed dialog without expected error.", text)
except:
t,v = sys.exc_info()[:2]
test.warning("An exception occurred in closeHTTPStatusAndPasterDialog(): %s(%s)"
% (str(t), str(v)))
test.log("Closed dialog without expected error.", text)
return False
def pasteFile(sourceFile, protocol):