Browse Source

fix operator precedence

pull/2348/head
David Lord 7 years ago
parent
commit
8f3563cf79
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      flask/app.py

2
flask/app.py

@ -1585,7 +1585,7 @@ class Flask(_PackageBoundObject):
# when generating the response message. Set an informative
# description for key errors in debug mode or when trapping errors.
if (
self.debug or self.config['TRAP_BAD_REQUEST_ERRORS']
(self.debug or self.config['TRAP_BAD_REQUEST_ERRORS'])
and isinstance(e, BadRequestKeyError)
# only set it if it's still the default description
and e.description is BadRequestKeyError.description

Loading…
Cancel
Save