swagger-api/swagger-codegen

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

Open

#4.235 geöffnet am 22. Nov. 2016

Auf GitHub ansehen
 (11 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Client: PythonIssue: Bughelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide