mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1901289 [Cannot communicate with Sony PRS 650](https://bugs.launchpad.net/calibre/+bug/1901289)
This commit is contained in:
parent
e0c9b3cdbc
commit
0b973057d0
@ -24,7 +24,10 @@ def none_cmp(xx, yy):
|
||||
y = yy[1]
|
||||
if x is None and y is None:
|
||||
# No sort_key needed here, because defaults are ascii
|
||||
return cmp(xx[2], yy[2])
|
||||
try:
|
||||
return cmp(xx[2], yy[2])
|
||||
except TypeError:
|
||||
return 0
|
||||
if x is None:
|
||||
return 1
|
||||
if y is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user