matecsaj / ebay_rest

A pip package that conveniently wraps eBay’s RESTful APIs.
MIT License
43 stars 12 forks source link

Nonetype error: object is not iterable #81

Closed eduardonard closed 10 months ago

eduardonard commented 10 months ago

In the API class, method "_methodpaged" can brake here

if record_list_key is None:  # if still needed, find the dictionary key to the list of results
                for key in result:
                    if isinstance(result[key], list):
                        record_list_key = key
                        page_controls.append(key)
                        break

result can be None, and it is not iterable

matecsaj commented 10 months ago

Thank you for the report. Can you tell me how you triggered the None result? I might add a new unit test.

I added a couple of lines to handle a None. Please try today's release and let me know if your problem is completely solved.

eduardonard commented 10 months ago

I don't know how it happened, anyway thank you for fixing the issue