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

Unstable and no longer managed #10

Open
dbbnicole opened this issue Jul 10, 2023 · 0 comments
Open

Unstable and no longer managed #10

dbbnicole opened this issue Jul 10, 2023 · 0 comments
Assignees

Comments

@dbbnicole
Copy link
Contributor

This accelerator has been removed from our nightly testing list because its external data source is unreliable.

Latest error on task dd_02:


Downloading reports for 10 organization(s)


[1/10] Downloaded report for [ambev-sa]
[2/10] Downloaded report for [anheuser-busch-inbev-nv]
[3/10] Downloaded report for [anheuser-busch-inbev-sa]
[4/10] Downloaded report for [arca-continental]
AttributeError: 'NoneType' object has no attribute 'split'

AttributeError Traceback (most recent call last)
File :18
13 print('*'*50)
15 for i, organization in enumerate(organizations):
16
17 # retrieve CSR report for a given organization
---> 18 url = get_organization_details(organization)
19 if url:
20 try:
21 # generate a unique identifier and a unique path where files will be stored

File :31, in get_organization_details(organization)
29 for link in soup.findAll('a'):
30 data = link.get('href')
---> 31 if data.split('.')[-1] == 'pdf':
32 csr_url = 'https://www.responsibilityreports.com' + data
33 break

AttributeError: 'NoneType' object has no attribute 'split'

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

No branches or pull requests

2 participants