Skip to content

Commit

Permalink
Use True parameter to exit if error occurs while downloading files
Browse files Browse the repository at this point in the history
  • Loading branch information
HafeezOJ committed Oct 3, 2024
1 parent 794a9b3 commit 20a26bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions figshare/Article.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,7 @@ def __final_process(self, check_files, copy_files, check_dir, version_data, fold
except Exception as e:
self.logs.write_log_in_file("error", f"{str(e)} for {'_'.join(os.path.basename(folder_name).split('_')[0:-1])}" , True)
if self.system_config['continue-on-error'] == "False":
self.logs.write_log_in_file("info", "Aborting execution.", True)
exit()
self.logs.write_log_in_file("info", "Aborting execution.", True, True)
delete_now = True

# check if download process has error or not.
Expand Down

0 comments on commit 20a26bd

Please sign in to comment.