refactor - simplify comprehension to reduce code complexity
This commit is contained in:
parent
a730578fcb
commit
76f81225ff
1 changed files with 2 additions and 3 deletions
|
|
@ -414,12 +414,11 @@ class Blueprint(Scaffold):
|
|||
value = defaultdict(
|
||||
dict,
|
||||
{
|
||||
code: {
|
||||
exc_class: func for exc_class, func in code_values.items()
|
||||
}
|
||||
code: dict(code_values.items())
|
||||
for code, code_values in value.items()
|
||||
},
|
||||
)
|
||||
|
||||
app.error_handler_spec[key] = value
|
||||
|
||||
for endpoint, func in self.view_functions.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue