Skip to content

Commit

Permalink
Improve an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBacon committed Nov 21, 2024
1 parent 60f29bd commit 51e5fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/rule/rule_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def run_difficulty(
id_difficulty, messages = difficulty_repo.run(record)
if id_difficulty is None:
record.result = 'warn'
messages.append("*:*: No rules exist for this taxon.")
messages.append("No rules exist for this taxon.")
record.id_difficulty = id_difficulty
record.messages.extend(messages)
else:
Expand Down
2 changes: 1 addition & 1 deletion test/verify/test_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_valid_record(self, client: TestClient, mocker):
assert 'id_difficulty' not in verified
assert len(verified['messages']) == 1
assert verified['messages'][0] == (
"*:*: No rules exist for this taxon.")
"No rules exist for this taxon.")

# Update to test against specific org_group.
rules = OrgGroupRules(
Expand Down

0 comments on commit 51e5fe0

Please sign in to comment.