Skip to content

Commit

Permalink
Use TypeError.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 21, 2023
1 parent 0bcd6d9 commit 8b46c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def add_parser(self, parser):
"""
if not isinstance(parser, Parser):
logging.critical(f"Parser '{parser}' must be a Parser instance")
raise TypeError(f'"{parser}" must be a Parser instance')
self.parsers.append(parser)

def parse(self):
Expand Down

0 comments on commit 8b46c8d

Please sign in to comment.