1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

fix exit status of --clear-cache/--list-modules/--list-extractors

All three would always cause gallery-dl to exit with status 1,
regardless of error or success.
This commit is contained in:
Mike Fährmann 2024-05-29 02:56:25 +02:00
parent 3d033a48ea
commit 7ba2b209f1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -213,6 +213,7 @@ def main():
if cnt is None:
log.error("Database file not available")
return 1
else:
log.info(
"Deleted %d %s from '%s'",
@ -305,6 +306,7 @@ def main():
input_manager.next()
return retval
return 0
except KeyboardInterrupt:
raise SystemExit("\nKeyboardInterrupt")