From 146b1672d20fc060ae9904b827ff755e7aa99468 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 10 Apr 2012 14:13:07 +0200 Subject: [PATCH] Squish: Handle None in __cropAndLog__() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie2bbcfde7684f0d25ed8ff7e7da2897a9f1a0873 Reviewed-by: Robert Löhning --- tests/system/shared/workarounds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/system/shared/workarounds.py b/tests/system/shared/workarounds.py index a783fb34eb7..9d3edbf271a 100644 --- a/tests/system/shared/workarounds.py +++ b/tests/system/shared/workarounds.py @@ -185,6 +185,9 @@ class JIRA: # this function crops multiple whitespaces from fetched and searches for expected # ids without using regex def __cropAndLog__(self, fetched): + if fetched == None: + test.log("None passed to __cropAndLog__()") + return fetched = " ".join(fetched.split()) resoInd = fetched.find('resolution-val') statInd = fetched.find('status-val')