Skip to content

Commit

Permalink
MNT Use raise exception instead of returning string
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR authored Jun 15, 2024
1 parent 26daae2 commit a0c8a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketserializer/components/stored_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ def __get_parameter(datapoints, data_labels, time_vector, label, position):
return parameter[position, 1] # return the value at the specified position
else:
logger.error("Invalid position parameter")
return "Error in position parameter"
raise ValueError("Error in position parameter")

0 comments on commit a0c8a3d

Please sign in to comment.