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

Catch exception to prevent crashes #81

Merged
merged 5 commits into from Feb 21, 2023

Conversation

amit-sides
Copy link
Contributor

I encountered crashes from these 2 exceptions a few times now. These crashes can only be resolved by restarting the scraper...

futuresboard_1 [2022-12-02 19:33:43,165] INFO in scraper: Auto scrape routines starting
futuresboard_1 Exception in thread Thread-1:
futuresboard_1 Traceback (most recent call last):
futuresboard_1   File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
futuresboard_1     self.run()
futuresboard_1   File "/usr/local/lib/python3.8/threading.py", line 870, in run
futuresboard_1     self._target(*self._args, **self._kwargs)
futuresboard_1   File "/usr/local/lib/python3.8/site-packages/futuresboard/scraper.py", line to_scrape
futuresboard_1     scrape(app=app)
futuresboard_1   File "/usr/local/lib/python3.8/site-packages/futuresboard/scraper.py", line rape
futuresboard_1     _scrape(app=app)
futuresboard_1   File "/usr/local/lib/python3.8/site-packages/futuresboard/scraper.py", line crape
futuresboard_1     if responseJSON["result"]["data"] is not None:
futuresboard_1 KeyError: 'data'

Amit Sides and others added 5 commits November 26, 2022 11:16
@ecoppen ecoppen merged commit 9fd1ac7 into ecoppen:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants