From f4f49b90564ba36fa6866116e7a52aa5f4c4e978 Mon Sep 17 00:00:00 2001 From: Matthias Fabinski Date: Fri, 9 Sep 2016 18:57:21 +0200 Subject: [PATCH] Fix the update flag --- redditdownload/redditdownload.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/redditdownload/redditdownload.py b/redditdownload/redditdownload.py index 76c4a9a..a01a696 100755 --- a/redditdownload/redditdownload.py +++ b/redditdownload/redditdownload.py @@ -512,6 +512,13 @@ def main(): DOWNLOADED += 1 FILECOUNT += 1 + except FileExistsException,e: + print ' %s' % (e) + ERRORS += 1 + if ARGS.update: + print ' Update complete, exiting.' + FINISHED = True + break except Exception,e: print ' %s' % str(e) ERRORS += 1