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

Some of the dividends don't have the "PER SHARE" sub-string #106

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

CatalinGB
Copy link
Contributor

Hi :)

While most of the dividends are with this kind of description:
description='BAH(Ux) CASH DIVIDEND USD 0.47 PER SHARE (Ordinary Dividend)'
some are of this form:
description='IFN (USx) STOCK DIVIDEND USx x FOR 1000000000 (Ordinary Dividend)'

This will cause an AttributeError: 'NoneType' object has no attribute 'group' as no "PER SHARE" is found.

E.g. "description='IFN (USx) STOCK DIVIDEND USx x FOR 1000000000 (Ordinary Dividend)'"
@tarioch
Copy link
Owner

tarioch commented Jan 6, 2024

Thank you very much for your contribution, looks like there are some pre-commit checks failing. Can you please adjust?

@tarioch tarioch merged commit a95ac4e into tarioch:master Jan 7, 2024
1 of 2 checks passed
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.

2 participants