From c3e62b073df75131e4c80cc0e254fb7bce2e60f1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Jan 2010 12:36:17 -0700 Subject: [PATCH] ... --- src/calibre/devices/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/__init__.py b/src/calibre/devices/__init__.py index 7cf98913f3..466a9ec20a 100644 --- a/src/calibre/devices/__init__.py +++ b/src/calibre/devices/__init__.py @@ -97,6 +97,8 @@ def debug(ioreg_to_tmp=False, buf=None): out('Devices possibly connected:', end=' ') for dev, det in connected_devices: out(dev.name, end=', ') + if not connected_devices: + out('None', end='') out(' ') for dev, det in connected_devices: out('Trying to open', dev.name, '...', end=' ')