server: fix python docstring formatting

This commit is contained in:
Shyam Sunder 2021-11-29 18:39:34 -05:00
parent f3aa0eb801
commit 9b3123a815
6 changed files with 13 additions and 13 deletions

View File

@ -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(