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:
@@ -213,6 +213,7 @@ def main():
|
|||||||
|
|
||||||
if cnt is None:
|
if cnt is None:
|
||||||
log.error("Database file not available")
|
log.error("Database file not available")
|
||||||
|
return 1
|
||||||
else:
|
else:
|
||||||
log.info(
|
log.info(
|
||||||
"Deleted %d %s from '%s'",
|
"Deleted %d %s from '%s'",
|
||||||
@@ -305,6 +306,7 @@ def main():
|
|||||||
|
|
||||||
input_manager.next()
|
input_manager.next()
|
||||||
return retval
|
return retval
|
||||||
|
return 0
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise SystemExit("\nKeyboardInterrupt")
|
raise SystemExit("\nKeyboardInterrupt")
|
||||||
|
|||||||
Reference in New Issue
Block a user