Skip to content

Commit

Permalink
Change error type
Browse files Browse the repository at this point in the history
  • Loading branch information
Staiger, Christine committed Nov 25, 2024
1 parent 7e7321a commit 9e852f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibridges/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def add(self, key: str, value: str, units: Optional[str] = None):
"""
if key is None or key == "":
raise ValueError("Key cannot be None or an empty string.")
raise TypeError("Key cannot be None or an empty string.")
if value is None or value == "":
raise ValueError("Value cannot be None or an empty string.")
raise TypeError("Value cannot be None or an empty string.")
try:
if (key, value, units) in self:
raise ValueError("ADD META: Metadata already present")
Expand Down

0 comments on commit 9e852f9

Please sign in to comment.