Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer exception in EpicGamesCrawler. #1

Closed
moonstar-x opened this issue Aug 13, 2024 · 0 comments · Fixed by #6
Closed

Null pointer exception in EpicGamesCrawler. #1

moonstar-x opened this issue Aug 13, 2024 · 0 comments · Fixed by #6
Labels
bug Something isn't working

Comments

@moonstar-x
Copy link
Owner

crawler-1   | (EpicGamesCrawler @ 2024-08-12 07:34:11 PM): [ERROR] - object of type 'NoneType' has no len() 
crawler-1   |  Traceback (most recent call last):
crawler-1   |    File "/opt/app/pkg/runner/offer_crawler.py", line 38, in run
crawler-1   |     self._execute()
crawler-1   |    File "/opt/app/pkg/runner/offer_crawler.py", line 17, in _execute
crawler-1   |     for offer in result:
crawler-1   |    File "/opt/app/pkg/crawlers/epicgames.py", line 24, in _extract_offers
crawler-1   |     free_elements = [element for element in elements if self._filter_free_element(element)]
crawler-1   |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
crawler-1   |    File "/opt/app/pkg/crawlers/epicgames.py", line 34, in _filter_free_element
crawler-1   |     return len(promotional_offers) > 0 and discount_price == 0
crawler-1   |            ^^^^^^^^^^^^^^^^^^^^^^^
crawler-1   |  TypeError: object of type 'NoneType' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant