Skip to content
New issue

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

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

Already on GitHub? # to your account

find addr_id exception: list index out of range #3

Closed
oxalorg opened this issue Apr 24, 2020 · 1 comment
Closed

find addr_id exception: list index out of range #3

oxalorg opened this issue Apr 24, 2020 · 1 comment

Comments

@oxalorg
Copy link

oxalorg commented Apr 24, 2020

In the past 25 minutes (so 5 executions). I have received this exception once.

...
No delivery slot is found.

Visiting main website...
Visiting cart page...
Traceback (most recent call last):
  File "check_if_delivery_slot_available.py", line 48, in wrapper
    return job_func(*args, **kwargs)
  File "check_if_delivery_slot_available.py", line 70, in job
    addr_id = notifier.visit_cart_page_and_get_address_id()
  File "/home/ox/code/bigbasket-notifier/src/notifier.py", line 105, in visit_cart_page_and_get_address_id
    addr_id = self._find_address_id(resp.text)
  File "/home/ox/code/bigbasket-notifier/src/notifier.py", line 121, in _find_address_id
    return html.split("'addr_id'")[1][:30].split()[1]
IndexError: list index out of range
@SlapBot
Copy link
Contributor

SlapBot commented Apr 24, 2020

Yep, It seems to happen occasionally for me as well although it shouldn't crash the program because of exceptions check. Issue looks to be related with BigBasket's website.

Solution to more stability can be discussed with #2 since its closely related with it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants