aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/products.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-08 18:56:57 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-08 18:56:57 +0200
commit1bf79e5f9bcdc4b82bf36890ed8050fe5dd505b3 (patch)
treec3b546c4c49cd85e28c14c3a19b56d8b9bac00aa /gsxws/products.py
parent20709c67a12fcddaf4a855a630cd35714ebe4021 (diff)
downloadpy-gsxws-1bf79e5f9bcdc4b82bf36890ed8050fe5dd505b3.tar.gz
py-gsxws-1bf79e5f9bcdc4b82bf36890ed8050fe5dd505b3.tar.bz2
py-gsxws-1bf79e5f9bcdc4b82bf36890ed8050fe5dd505b3.zip
Catch TypeError in repair strategies
Diffstat (limited to 'gsxws/products.py')
-rw-r--r--gsxws/products.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index 281c097..6fa4666 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -103,7 +103,7 @@ class Product(object):
try:
for i in self.warrantyDetails.availableRepairStrategies:
self.repair_strategies.append(i.availableRepairStrategy)
- except AttributeError:
+ except (AttributeError, TypeError):
pass
return self.warrantyDetails