From b5c7529f72183a6b58444cd9e1091cfcf27de46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 7 Mar 2016 13:54:14 +0100 Subject: [PATCH] nonzero status from 7zip doesnt end script, just goes to next movie --- napi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi b/napi index 50fbf50..cc6162d 100755 --- a/napi +++ b/napi @@ -85,7 +85,7 @@ for movie_filename in args.movies: if result != 0: print "%s: 7zip returned non-zero code: %s" % (movie_filename, subtitle_filename) os.remove(subtitle_filename) - sys.exit(3) + continue print "%s: downloaded subtitles: uploader '%s', author '%s', date '%s'" % (movie_filename, subtitle_uploader, subtitle_author, subtitle_date)