Skip to content

Commit

Permalink
Resolve issue #8: change logger print to correct variable name
Browse files Browse the repository at this point in the history
Fixes AttributeError: 'ManufacturerProductDetailsRequest' object has no attribute 'keywords'
  • Loading branch information
Funkenjaeger authored and peeter123 committed Dec 20, 2020
1 parent f131588 commit 94febc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digikey/v3/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def manufacturer_product_details(*args, **kwargs) -> KeywordSearchResponse:
client = ProductApiWrapper('manufacturer_product_details_with_http_info')

if 'body' in kwargs and type(kwargs['body']) == ManufacturerProductDetailsRequest:
logger.info(f'Search for: {kwargs["body"].keywords}')
logger.info(f'Search for: {kwargs["body"].manufacturer_product}')
return client.call_api_function(*args, **kwargs)
else:
raise DigikeyError('Please provide a valid ManufacturerProductDetailsRequest argument')

0 comments on commit 94febc1

Please sign in to comment.