mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
sync to trunk.
This commit is contained in:
commit
5f160c9d21
@ -146,6 +146,13 @@ class MTP_DEVICE(MTPDeviceBase):
|
||||
p(traceback.format_exc())
|
||||
return False
|
||||
|
||||
if not pnp_ids:
|
||||
p('The Windows WPD service says there are no portable devices connected')
|
||||
return False
|
||||
|
||||
p('List of WPD PNP ids:')
|
||||
p(pprint.pformat(list(pnp_ids)))
|
||||
|
||||
for pnp_id in pnp_ids:
|
||||
try:
|
||||
data = self.wpd.device_info(pnp_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user