swagger-api/swagger-codegen

[Python] No way to handle exceptions in asyncronous code (with callback)

Open

#4.235 aberto em 22 de nov. de 2016

Ver no GitHub
 (11 comments) (0 reactions) (0 assignees)HTML (5.474 forks)batch import
Client: PythonIssue: Bughelp wanted

Métricas do repositório

Stars
 (12.701 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Description

Produced by codegen Python code does not support handling of exceptions in anync mode (with callback). If swagger client code raises exeption, callback will never be called.

Swagger-codegen version

5

Command line used for generation

-l python

Suggest a Fix

Catch all exceptions in generated swagger client and return special type of result in case of exceptions.

Guia do colaborador