fix operator precedence
This commit is contained in:
parent
42905b8a55
commit
8f3563cf79
1 changed files with 1 additions and 1 deletions
|
|
@ -1585,7 +1585,7 @@ class Flask(_PackageBoundObject):
|
||||||
# when generating the response message. Set an informative
|
# when generating the response message. Set an informative
|
||||||
# description for key errors in debug mode or when trapping errors.
|
# description for key errors in debug mode or when trapping errors.
|
||||||
if (
|
if (
|
||||||
self.debug or self.config['TRAP_BAD_REQUEST_ERRORS']
|
(self.debug or self.config['TRAP_BAD_REQUEST_ERRORS'])
|
||||||
and isinstance(e, BadRequestKeyError)
|
and isinstance(e, BadRequestKeyError)
|
||||||
# only set it if it's still the default description
|
# only set it if it's still the default description
|
||||||
and e.description is BadRequestKeyError.description
|
and e.description is BadRequestKeyError.description
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue