JuliaPy / JuliaPy/PythonCall.jl

PythonCall.jl how do I handle Python exceptions?

未關閉
#388 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
Julia
星號
1.1k
分支
86
平均合併
1 天 22 小時
30 天內合併 PR
3

描述

Using [PythonCall.jl](https://github.com/JuliaPy/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](https://stackoverflow.com/questions/77333648/julia-pythoncall-jl-how-do-i-handle-python-exceptions)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。