@@ -553,7 +553,7 @@ def fetch_files_from_pr(pr, path=None, github_user=None, github_account=None, gi
553
553
# see also https://github.com/easybuilders/easybuild-framework/issues/4869
554
554
max_attempts = DEFAULT_DOWNLOAD_MAX_ATTEMPTS
555
555
download_file (diff_fn , diff_url , diff_filepath , forced = True , trace = False ,
556
- max_attempts = DEFAULT_DOWNLOAD_MAX_ATTEMPTS )
556
+ max_attempts = max_attempts )
557
557
if not os .path .exists (diff_filepath ):
558
558
raise EasyBuildError (f"Failed to download { diff_url } , even after { max_attempts } attempts and being patient..." )
559
559
diff_txt = read_file (diff_filepath )
@@ -711,7 +711,7 @@ def fetch_files_from_commit(commit, files=None, path=None, github_account=None,
711
711
# see also https://github.com/easybuilders/easybuild-framework/issues/4869
712
712
max_attempts = DEFAULT_DOWNLOAD_MAX_ATTEMPTS
713
713
download_file (diff_fn , diff_url , diff_filepath , forced = True , trace = False ,
714
- max_attempts = DEFAULT_DOWNLOAD_MAX_ATTEMPTS )
714
+ max_attempts = max_attempts )
715
715
if os .path .exists (diff_filepath ):
716
716
diff_txt = read_file (diff_filepath )
717
717
_log .debug ("Diff for commit %s:\n %s" , commit , diff_txt )
0 commit comments