Skip to content

Commit

Permalink
Raise warning for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed May 2, 2023
1 parent 0129cb3 commit 7d87d6d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,13 @@ 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 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))
self.warned.append(
(
"container_links",
f"Access to container {response.url} denied, status code: {response.status_code}",
self.main_nf,
)
)

# Check that all bioconda packages have build numbers
# Also check for newer versions
Expand Down

0 comments on commit 7d87d6d

Please sign in to comment.