From 593214b3091aaa5a6c5116ee5cf5b489e029b50d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Dec 2009 09:42:37 -0700 Subject: [PATCH] ... --- src/calibre/devices/usbms/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/usbms/device.py b/src/calibre/devices/usbms/device.py index ba1d025502..fcefdb7582 100644 --- a/src/calibre/devices/usbms/device.py +++ b/src/calibre/devices/usbms/device.py @@ -329,7 +329,8 @@ class Device(DeviceConfig, DevicePlugin): return subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] except IOError: # Probably an interrupted system call - pass + if i == 2: + raise time.sleep(2)