From 1bf79e5f9bcdc4b82bf36890ed8050fe5dd505b3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 8 Nov 2015 18:56:57 +0200 Subject: Catch TypeError in repair strategies --- gsxws/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3