mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a typo that broke device detection on Linux
This commit is contained in:
parent
fe81410c74
commit
ffe2207022
@ -493,7 +493,7 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
node = parts[idx+1]
|
||||
try:
|
||||
with open(sz, 'rb') as szf:
|
||||
exists = szf.read().decode('utf-8') > 0
|
||||
exists = int(szf.read().decode('utf-8')) > 0
|
||||
if exists:
|
||||
node = self.find_largest_partition(x)
|
||||
ok[node] = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user