Bläddra i källkod

f.fileno() may raise ValueError

Conflicts:
	celery/platforms.py
Ask Solem 11 år sedan
förälder
incheckning
7e2b18c879
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      celery/platforms.py

+ 2 - 2
celery/platforms.py

@@ -50,9 +50,9 @@ Seems we're already running? (pid: %s)"""
 
 try:
     from io import UnsupportedOperation
-    FILENO_ERRORS = (AttributeError, UnsupportedOperation)
+    FILENO_ERRORS = (AttributeError, ValueError, UnsupportedOperation)
 except ImportError:  # Py2
-    FILENO_ERRORS = (AttributeError, )  # noqa
+    FILENO_ERRORS = (AttributeError, ValueError)  # noqa
 
 
 def pyimplementation():