exit without runtimeerror
This commit is contained in:
parent
d11df4e7ce
commit
a2592b2b50
1 changed files with 2 additions and 1 deletions
|
@ -49,4 +49,5 @@ for file1 in file_list:
|
||||||
with open(os.path.expanduser('~/.local/share/drive-download/seen.pickle'), 'wb') as f:
|
with open(os.path.expanduser('~/.local/share/drive-download/seen.pickle'), 'wb') as f:
|
||||||
pickle.dump(seen, f)
|
pickle.dump(seen, f)
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("{} exists".format(shlex.quote(local_filename)))
|
print("{} exists locally!".format(shlex.quote(local_filename)))
|
||||||
|
sys.exit(2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue