raise a ValueError instead of an AssertionError when pool is an invalid state
2 files changed