aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/repairs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 989c94d..e34219f 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -59,6 +59,10 @@ class SymptomIssue(GsxObject):
"ReportedSymptomIssueResponse")
r = self._req.objects.reportedSymptomIssueResponse
+ # This may sometimes come back empty...
+ if r is None:
+ raise GsxError('Symptom/Issue code search failed')
+
if r.symptoms is not None:
for s in r.symptoms:
result.append((s.reportedSymptomCode, s.reportedSymptomDesc,))