Skip to content

Commit 908253a

Browse files
authored
Update handlers.py
1 parent 748073f commit 908253a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcrudge/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def write_error(self, status_code, **kwargs):
111111
self.write(err_text)
112112
self.finish()
113113

114-
async def validate(self, data, schema, **kwargs):
114+
async def validate(self, data, schema, format_checker=None, **kwargs):
115115
"""
116116
Method to validate parameters.
117117
Raises HTTPError(400) with error info for invalid data.
@@ -141,7 +141,7 @@ async def validate(self, data, schema, **kwargs):
141141
]
142142
)
143143
)
144-
v = validator_for(schema)(schema, **kwargs)
144+
v = validator_for(schema)(schema, format_checker=format_checker)
145145
errors = []
146146
for error in v.iter_errors(_data):
147147
# error is an instance of jsonschema.exceptions.ValidationError

0 commit comments

Comments
 (0)