Fix flake8 line length error.
This commit is contained in:
parent
72db1188c7
commit
ef80953b1b
|
@ -107,7 +107,8 @@ def register(app, uri, file_or_directory, pattern,
|
||||||
if not stats:
|
if not stats:
|
||||||
stats = await stat(file_path)
|
stats = await stat(file_path)
|
||||||
if stats.st_size >= threshold:
|
if stats.st_size >= threshold:
|
||||||
return await file_stream(file_path, headers=headers, _range=_range)
|
return await file_stream(file_path, headers=headers,
|
||||||
|
_range=_range)
|
||||||
return await file(file_path, headers=headers, _range=_range)
|
return await file(file_path, headers=headers, _range=_range)
|
||||||
except ContentRangeError:
|
except ContentRangeError:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user