fix: make oneshot command return successful exist code

This commit is contained in:
Sascha Ißbrücker 2023-05-29 10:01:27 +02:00
parent 32eef51081
commit 40c122515a
2 changed files with 34 additions and 2 deletions

View file

@ -162,7 +162,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
write_link_details(link, out_dir=out_dir, skip_sql_index=False)
log_link_archiving_finished(link, link.link_dir, is_new, stats, start_ts)
log_link_archiving_finished(link, out_dir or link.link_dir, is_new, stats, start_ts)
except KeyboardInterrupt:
try: