mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 03:04:51 +01:00
...
This commit is contained in:
parent
24d2849dfa
commit
4962c839fe
1 changed files with 7 additions and 0 deletions
|
|
@ -146,6 +146,13 @@ def debug_managed_device_detection(self, devices_on_system, output):
|
|||
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…
Reference in a new issue