mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
24d2849dfa
commit
4962c839fe
@ -146,6 +146,13 @@ class MTP_DEVICE(MTPDeviceBase):
|
|||||||
p(traceback.format_exc())
|
p(traceback.format_exc())
|
||||||
return False
|
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:
|
for pnp_id in pnp_ids:
|
||||||
try:
|
try:
|
||||||
data = self.wpd.device_info(pnp_id)
|
data = self.wpd.device_info(pnp_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user