Skip to content

Commit

Permalink
add raises to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 3, 2021
1 parent 1f64be8 commit 656cf9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mthree/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def stddev(self):
Returns:
float: Standard deviation.
Raises:
M3Error: Distribution is missing info.
"""
if self.shots is None:
raise M3Error('Prob-dist is missing shots information.')
Expand Down

0 comments on commit 656cf9e

Please sign in to comment.