mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Output failure to read node size from sysfs in debug mode
This commit is contained in:
parent
eecbd1637c
commit
ad4366681e
@ -545,6 +545,9 @@ class Device(DeviceConfig, DevicePlugin):
|
|||||||
ok[node] = False
|
ok[node] = False
|
||||||
except:
|
except:
|
||||||
ok[node] = False
|
ok[node] = False
|
||||||
|
if DEBUG and not ok[node]:
|
||||||
|
print '\nIgnoring the node: %s as could not read size from: %s' % (node, sz)
|
||||||
|
|
||||||
devnodes.append(node)
|
devnodes.append(node)
|
||||||
|
|
||||||
devnodes += list(repeat(None, 3))
|
devnodes += list(repeat(None, 3))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user