Skip to content

Commit

Permalink
remove handling from linting as it's already handled later
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 16, 2022
1 parent 1625014 commit 632b675
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nf_core/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ def load_lint_schema(self):
def load_schema(self):
"""Load a pipeline schema from a file"""
with open(self.schema_filename, "r") as fh:
try:
self.schema = json.load(fh)
except json.JSONDecodeError as e:
raise UserWarning(f"Unable to load JSON file '{self.schema_filename}' due to error {e}")
self.schema = json.load(fh)
self.schema_defaults = {}
self.schema_params = []
log.debug(f"JSON file loaded: {self.schema_filename}")
Expand Down

0 comments on commit 632b675

Please sign in to comment.