Skip to content

PythonCall.jl how do I handle Python exceptions? #388

Open
@hubert-associates

Description

@hubert-associates

Using PythonCall.jl, how do I best handle python exception patters such as the following python:

try:
  database = client.create_database(DATABASE_NAME)
except exceptions.CosmosResourceExistsError:
  database = client.get_database_client(DATABASE_NAME)

xref stackoverflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions