mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9b9799f5b1
commit
8476de6507
@ -17,8 +17,8 @@ def eintr_retry_call(func, *args, **kwargs):
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
except (OSError, IOError) as e:
|
except EnvironmentError as e:
|
||||||
if e.errno == errno.EINTR:
|
if getattr(e, 'errno', None) == errno.EINTR:
|
||||||
continue
|
continue
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user