Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container warns if permission is denied #2270

Merged
merged 8 commits into from
May 3, 2023
Prev Previous commit
Next Next commit
Change to specific status codes
  • Loading branch information
adamrtalbot committed May 2, 2023
commit ec334da8bbd13b81e601df48fb8d9a44dc203528
2 changes: 1 addition & 1 deletion nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def check_process_section(self, lines, fix_version, progress_bar):
self.failed.append(("container_links", "Unable to connect to container URL", self.main_nf))
continue
if not response.ok:
if 400 <= response.status_code < 500:
if response.status_code in [400, 401, 402, 403]:
self.warned.append(("container_links", "Access to container URL denied", self.main_nf))
else:
self.failed.append(("container_links", "Unable to connect to container URL", self.main_nf))
Expand Down