mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:24:02 +02:00
...
This commit is contained in:
parent
9b9799f5b1
commit
8476de6507
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ def eintr_retry_call(func, *args, **kwargs):
|
|||
while True:
|
||||
try:
|
||||
return func(*args, **kwargs)
|
||||
except (OSError, IOError) as e:
|
||||
if e.errno == errno.EINTR:
|
||||
except EnvironmentError as e:
|
||||
if getattr(e, 'errno', None) == errno.EINTR:
|
||||
continue
|
||||
raise
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue