swagger-api/swagger-codegen

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

開放

#4,235 建立於 2016年11月22日

 (11 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: PythonIssue: Bughelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (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.

貢獻者指南