JuliaPy / JuliaPy/PythonCall.jl
PythonCall.jl how do I handle Python exceptions?
- Lenguaje dominante
- Julia
- Estrellas
- 1.1k
- Forks
- 86
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 3
Descripción
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)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
The issue points to PythonCall.jl and a linked Stack Overflow question; start by reviewing PythonCall.jl's exception-handling API and the referenced Python example. Document how to catch the specified Python exception and perform the fallback, with a clear usage example as the completion criterion.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia, python
- Área
- tooling
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100