MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / InvalidVolumeError

Class InvalidVolumeError

example_code/item_121.py:73–74  ·  view source on GitHub ↗

There was a problem with the provided weight value.

Source from the content-addressed store, hash-verified

71 """There was a problem with a provided density value."""
72
73class InvalidVolumeError(Error):
74 """There was a problem with the provided weight value."""
75
76def determine_weight(volume, density):
77 if density < 0:

Callers 2

determine_weightFunction · 0.85
determine_weightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected