mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:03:52 +02:00
Fix dev.open in debug device detection not passing a library uuid
This commit is contained in:
parent
8580338d8c
commit
6046ed793e
1 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ def strftime(epoch, zone=time.gmtime):
|
|||
def get_connected_device():
|
||||
from calibre.customize.ui import device_plugins
|
||||
from calibre.devices.scanner import DeviceScanner
|
||||
import uuid
|
||||
dev = None
|
||||
scanner = DeviceScanner()
|
||||
scanner.scan()
|
||||
|
|
@ -47,7 +48,7 @@ def get_connected_device():
|
|||
|
||||
for d in connected_devices:
|
||||
try:
|
||||
d.open()
|
||||
d.open(str(uuid.uuid4()))
|
||||
except:
|
||||
continue
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue