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 when adding missing tokens #38

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

harisang
Copy link

When attempting to generate the list of missing tokens, we observed that the script sometimes crashes due to ill-formed strings/addresses (e.g., addresses that do not have the right length).

This PR addresses this by catching an exception that is raised in this case; whenever the exception is raised, the token is now ignored.

@harisang harisang marked this pull request as draft September 16, 2023 21:26
@bh2smith
Copy link
Contributor

PS - I reported this bug in Dune yesterday:

duneanalytics/spellbook#4347

@harisang
Copy link
Author

PS - I reported this bug in Dune yesterday:

duneanalytics/spellbook#4347

Oh nice, thanks Ben! Hadn't seen that. In any case, I guess it makes sense to handle the exception within this script as well.

@bh2smith
Copy link
Contributor

It does, but you could also just update the query to filter out this one address until someone fixes it.

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