Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: wrong exit codes

NTFSvolume49f37d0dd971
diff --git a/cyberdrop_dl/director.py b/cyberdrop_dl/director.py
index 8db1cf334..798eb48d0 100644
--- a/cyberdrop_dl/director.py
+++ b/cyberdrop_dl/director.py
@@ -337,11 +337,11 @@ class Director:
return self._run()
def _run(self) -> int:
- exit_code = _C.OK
+ exit_code = _C.ERROR
with contextlib.suppress(Exception):
try:
asyncio.run(_run_manager(self.manager))
- exit_code = _C.ERROR
+ exit_code = _C.OK
except KeyboardInterrupt:
rich_print("Trying to Exit ...")
finally: