enhance _check_running() ValuError output in Pool class

This commit is contained in:
Jim Lin 2020-11-11 10:22:54 +08:00
parent 95ce7cd0a6
commit 2f74b034fb
1 changed files with 1 additions and 1 deletions

View File

@ -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={}):
'''