nonzero status from 7zip doesnt end script, just goes to next movie

This commit is contained in:
Paweł Płazieński 2016-03-07 13:54:14 +01:00
parent d03f00ddb4
commit b5c7529f72

2
napi
View file

@ -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)