Handle missing key
This commit is contained in:
parent
8ad74126b7
commit
6a61baf06b
|
|
@ -106,6 +106,8 @@ class HepClient:
|
|||
|
||||
def active_myskillbox_product_for_customer(self, request=None, token_dict=None):
|
||||
eorders = self.fetch_eorders(request=request, token_dict=token_dict)
|
||||
logger.info(eorders)
|
||||
|
||||
myskillbox_products = self._extract_myskillbox_products(eorders)
|
||||
|
||||
if len(myskillbox_products) == 0:
|
||||
|
|
@ -129,6 +131,9 @@ class HepClient:
|
|||
|
||||
for eorder in eorders:
|
||||
|
||||
if 'entries' not in eorder:
|
||||
continue
|
||||
|
||||
status = eorder.get('status', '')
|
||||
|
||||
for entry in eorder['entries']:
|
||||
|
|
|
|||
Loading…
Reference in New Issue