From 2b5b78e4bd5d28c7bfa84f779864b3878d45a70a Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 9 Oct 2013 23:03:32 -0700 Subject: [PATCH] decorators: handle EINVAL for interrupted calls Signed-off-by: David Aguilar --- cola/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cola/decorators.py b/cola/decorators.py index 7e44d5d0..bf83ef06 100644 --- a/cola/decorators.py +++ b/cola/decorators.py @@ -79,7 +79,7 @@ def interruptable(func, *args, **opts): continue raise e except OSError, e: - if e.errno == errno.EINTR: + if e.errno in (errno.EINTR, errno.EINVAL): continue raise e else: -- 2.11.4.GIT