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

Error reported after update to 0.122 #1076

Open
4 tasks done
imellor opened this issue Dec 8, 2024 · 0 comments · May be fixed by #1088
Open
4 tasks done

Error reported after update to 0.122 #1076

imellor opened this issue Dec 8, 2024 · 0 comments · May be fixed by #1088
Labels
bug Something isn't working

Comments

@imellor
Copy link

imellor commented Dec 8, 2024

Name of Council

London Borough of Sutton

Issue Information

Error reported after update to 0.122
Failed start up retrying
Home assistant version: 2024.12.1

[UKBinCollection] Unexpected error: 'NoneType' object has no attribute 'find_next_sibling' Traceback (most recent call last): File "/config/custom_components/uk_bin_collection/__init__.py", line 250, in _async_update_data data = await asyncio.wait_for( ^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ) ^ File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for return await fut ^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 101, in run return self.client_code( ~~~~~~~~~~~~~~~~^ council_module.CouncilClass(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<9 lines>... council_module_str=self.parsed_args.module, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 121, in client_code return get_bin_data_class.template_method(address_url, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 61, in template_method bin_data_dict = self.get_and_parse_data(this_url, **kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 82, in get_and_parse_data bin_data_dict = self.parse_data(page, url=address_url, **kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/councils/LondonBoroughSutton.py", line 51, in parse_data .find_next_sibling("dd") ^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'find_next_sibling'

Verification

  • I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
  • I have checked my address/postcode/UPRN works on the council's website
  • I have provided a detailed explanation of the issue as well as steps to replicate the issue
  • I understand that this project is run by volunteer contributors therefore completion of this issue cannot be guaranteed
@imellor imellor added the bug Something isn't working label Dec 8, 2024
m26dvd added a commit to m26dvd/UKBinCollectionData that referenced this issue Dec 12, 2024
dp247 pushed a commit to dp247/UKBinCollectionData that referenced this issue Dec 17, 2024
fix: robbrad#1076
(cherry picked from commit 1eab20c)
@dp247 dp247 linked a pull request Dec 17, 2024 that will close this issue
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
Development

Successfully merging a pull request may close this issue.

1 participant