swagger-api/swagger-codegen

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

Open

#4235 aperta il 22 nov 2016

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: PythonIssue: Bughelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor