swagger-api/swagger-codegen
在 GitHub 查看[Python] No way to handle exceptions in asyncronous code (with callback)
Open
#4,235 建立於 2016年11月22日
Client: PythonIssue: Bughelp wanted
倉庫指標
- Star
- (12,701 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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.