Don't fail on a debug() statement, if the worker PID is (still) None.
diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index e2b670d..2a8fae1 100644
--- a/Lib/multiprocessing/pool.py
+++ b/Lib/multiprocessing/pool.py
@@ -451,7 +451,7 @@
             for w in pool:
                 if w.exitcode is None:
                     # worker has not yet exited
-                    debug('cleaning up worker %d' % w.pid)
+                    debug('cleaning up worker %s' % w.pid)
                     w.join()
 
 #