server: fix python docstring formatting
This commit is contained in:
parent
f3aa0eb801
commit
9b3123a815
|
@ -39,7 +39,7 @@ def download(url: str, use_video_downloader: bool = False) -> bytes:
|
||||||
length_tally = 0
|
length_tally = 0
|
||||||
try:
|
try:
|
||||||
with urllib.request.urlopen(request) as handle:
|
with urllib.request.urlopen(request) as handle:
|
||||||
while (chunk := handle.read(_dl_chunk_size)) :
|
while chunk := handle.read(_dl_chunk_size):
|
||||||
length_tally += len(chunk)
|
length_tally += len(chunk)
|
||||||
if length_tally > config.config["max_dl_filesize"]:
|
if length_tally > config.config["max_dl_filesize"]:
|
||||||
raise DownloadTooLargeError(
|
raise DownloadTooLargeError(
|
||||||
|
|
Loading…
Reference in New Issue