swagger-api/swagger-codegen

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

Ouverte

#4 235 ouverte le 22 nov. 2016

 (11 commentaires) (0 réaction) (0 personne assignée)HTML (5 474 forks)batch import
Client: PythonIssue: Bughelp wanted

Métriques du dépôt

Stars
 (12 701 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur