fix: indentation error from aria2c edit

This commit is contained in:
Claus Lohmar 2026-07-23 11:21:07 +00:00
parent 9110eb41bd
commit 2d347692db

View file

@ -228,10 +228,10 @@ def session_upload(
logger.info("Starting background download: %s%s", url, dest) logger.info("Starting background download: %s%s", url, dest)
try: try:
proc = subprocess.Popen( proc = subprocess.Popen(
["aria2c", "-x8", "-s8", "-d", str(dest.parent), "-o", dest.name, url], ["aria2c", "-x8", "-s8", "-d", str(dest.parent), "-o", dest.name, url],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
) )
except Exception as exc: except Exception as exc:
return JSONResponse({"phase": "error", "error": f"Failed to start download: {exc}"}, status_code=500) return JSONResponse({"phase": "error", "error": f"Failed to start download: {exc}"}, status_code=500)