Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion synda/sdt/sddmdefault.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,14 @@ def transfers_begin(transfers):
"Exception occured while retrieving certificate ({})".format(e),
)

raise
sdlog.error("SDDMDEFA-503"," continue_on_cert_errors=%s"%
preferences.is_download_continue_on_cert_errors )
if preferences.is_download_continue_on_cert_errors:
sdlog.error("SDDMDEFA-504","Ignoring exception")
pass # Try to keep on going, probably a certificate isn't needed.
else:
sdlog.error("SDDMDEFA-505","Re-raising exception")
raise

for tr in transfers:
start_transfer_thread(tr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self, full_filename):
config.set('download', 'http_fallback', 'false')
config.set('download', 'gridftp_opt', '')
# config.set('download', 'incremental_mode_for_datasets', 'false')
# config.set('download', 'continue_on_cert_errors', 'false')
config.set('download', 'continue_on_cert_errors', 'false')
config.set('download', 'url_max_buffer_size', '3500')

# nouvelles variables
Expand Down
4 changes: 4 additions & 0 deletions synda/source/config/file/user/preferences/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ def download_max_parallel_download_per_datanode(self):
def download_url_max_buffer_size(self):
return self.get_data().getint('download', 'url_max_buffer_size')

@property
def is_download_continue_on_cert_errors(self):
return self.get_data().getboolean('download', 'continue_on_cert_errors')

@property
def download_gridftp_opt(self):
return self.get_data().get('download', 'gridftp_opt')
Expand Down