enhance _check_running() ValuError output in Pool class
This commit is contained in:
parent
95ce7cd0a6
commit
2f74b034fb
|
@ -347,7 +347,7 @@ class Pool(object):
|
|||
|
||||
def _check_running(self):
|
||||
if self._state != RUN:
|
||||
raise ValueError("Pool not running")
|
||||
raise ValueError("Pool not running because self._state is {}".format(self._state))
|
||||
|
||||
def apply(self, func, args=(), kwds={}):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue