Skip to content

Commit

Permalink
Correct typos in exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0dler committed Jan 18, 2023
1 parent b93ca37 commit 06f6bc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robotools/evotools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ def _prepare_aspirate_dispense_parameters(
"""
# required parameters
if rack_label is None:
raise ValueError("Missing required paramter: rack_label")
raise ValueError("Missing required parameter: rack_label")
if not isinstance(rack_label, str) or len(rack_label) > 32 or ";" in rack_label:
raise ValueError(f"Invalid rack_label: {rack_label}")

if position is None:
raise ValueError("Missing required paramter: position")
raise ValueError("Missing required parameter: position")
if not isinstance(position, int) or position < 0:
raise ValueError(f"Invalid position: {position}")

if volume is None:
raise ValueError("Missing required paramter: volume")
raise ValueError("Missing required parameter: volume")
try:
volume = float(volume)
except:
Expand Down

0 comments on commit 06f6bc0

Please sign in to comment.