mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Edit book: Fix a rare error when running the Reports tool
py3 delights again
This commit is contained in:
parent
04b5e9bfc2
commit
577e550a54
@ -275,7 +275,7 @@ def group_sort(locations):
|
||||
for loc in locations:
|
||||
if loc.file_name not in order:
|
||||
order[loc.file_name] = len(order)
|
||||
return sorted(locations, key=lambda l:(order[l.file_name], l.sourceline))
|
||||
return sorted(locations, key=lambda l:(order[l.file_name], l.sourceline or 0))
|
||||
|
||||
|
||||
def get_checkable_file_names(container):
|
||||
|
Loading…
x
Reference in New Issue
Block a user