Skip to content

web3.providers.ipc.get_default_ipc_path() returned None instead of str #2911

Closed
@antazoey

Description

@antazoey
  • Version: 6.0.0
  • Python: 3.10
  • OS: macky whacky
  • pip freeze output
will provide if needed

What was wrong?

The method get_deafult_ipc_path() located in web3.providers.ipc returned None even though its return type is documented as str.

I am not sure why it returned None in my case, probably forgot some flag in geth.

Edit: it returned None in my case because i was checking it before starting geth, so it didnt exist yet.

How can it be fixed?

Either change type to Optional[str] or raise an error instead of returning None ?


Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions