Skip to content

Commit

Permalink
Little fix in App._resolver_error_handler()
Browse files Browse the repository at this point in the history
  • Loading branch information
31z4 committed Sep 19, 2016
1 parent 927e8a0 commit 6abd065
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions connexion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ def _resolver_error_handler(self, *args, **kwargs):
kwargs['operation'] = {
'operationId': 'connexion.handlers.ResolverErrorHandler',
}
kwargs['app_produces'] = ['application/json']
kwargs['app_consumes'] = ['application/json']
kwargs.setdefault('app_consumes', ['application/json'])
return ResolverErrorHandler(self.resolver_error, *args, **kwargs)

def add_error_handler(self, error_code, function):
Expand Down

0 comments on commit 6abd065

Please sign in to comment.