Re-fix stopping
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
9f4edd4b27
commit
34a3cc622e
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ class YTDLCog(commands.Cog):
|
||||||
|
|
||||||
def _download_hook(_data: dict[str, typing.Any]):
|
def _download_hook(_data: dict[str, typing.Any]):
|
||||||
if stop.is_set():
|
if stop.is_set():
|
||||||
raise ValueError("Download cancelled.")
|
raise RuntimeError("Download cancelled.")
|
||||||
n = time.time()
|
n = time.time()
|
||||||
_total = _data.get("total_bytes", _data.get("total_bytes_estimate")) or ctx.guild.filesize_limit
|
_total = _data.get("total_bytes", _data.get("total_bytes_estimate")) or ctx.guild.filesize_limit
|
||||||
if _total:
|
if _total:
|
||||||
|
|
Loading…
Reference in a new issue