From a2592b2b50e5c39e40d5dade7c2a193ea9b29582 Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 11 Jul 2018 15:25:51 +0200 Subject: [PATCH] exit without runtimeerror --- drive-download | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive-download b/drive-download index bbc133a..f815c51 100755 --- a/drive-download +++ b/drive-download @@ -49,4 +49,5 @@ for file1 in file_list: with open(os.path.expanduser('~/.local/share/drive-download/seen.pickle'), 'wb') as f: pickle.dump(seen, f) else: - raise RuntimeError("{} exists".format(shlex.quote(local_filename))) + print("{} exists locally!".format(shlex.quote(local_filename))) + sys.exit(2)