Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Assert Behavior on scraping wallet without transactions #30

Open
@XenonOrion

Description

@XenonOrion

in commitfb697e1 the following behavior was introduced:

# etherscan/utils/parsing.pyassertstatus,f"{result} --{message}"

to replace the UserWarning behavior:

#etherscan/utils/parsing.pywarnings.warn(f"{result} --{message}")

This has made the event of scraping an empty address, "aggressive" and forces downstream applications to catch a genericAssertionError, for this---in my case common---scenario. imho, getting an emptylist back in case no records exist, is completely valid behavior?

Could you elaborate on why this behavior was chosen, and this change was made?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp