6484: IndexError for sort_data/column on quick view table
svn: r21763
This commit is contained in:
parent
7da053e88e
commit
a581dda843
@ -408,8 +408,12 @@ class QuickTable(SimpleTable):
|
|||||||
col += 1
|
col += 1
|
||||||
try:
|
try:
|
||||||
model.append(row=([count] + list(rowdata) + [col[count] for col in sort_data]))
|
model.append(row=([count] + list(rowdata) + [col[count] for col in sort_data]))
|
||||||
except:
|
except KeyError as msg:
|
||||||
print("error in row %d: data: %s, sort data: %d" % (count, rowdata, len(sort_data[0])))
|
print (msg)
|
||||||
|
if sort_data:
|
||||||
|
print("Quicktable: error in row %d: data: %s, sort data: %d" % (count, rowdata, len(sort_data[0])))
|
||||||
|
else:
|
||||||
|
print("Quicktable: error in row %d: data: %s" % (count, rowdata))
|
||||||
count += 1
|
count += 1
|
||||||
text_view.show_all()
|
text_view.show_all()
|
||||||
self.simpledoc.paragraph("")
|
self.simpledoc.paragraph("")
|
||||||
|
@ -376,7 +376,7 @@ def run(database, document, filter_name, *args, **kwargs):
|
|||||||
fullname = media_path_full(database, photo.get_path())
|
fullname = media_path_full(database, photo.get_path())
|
||||||
try:
|
try:
|
||||||
bytes = posixpath.getsize(fullname)
|
bytes = posixpath.getsize(fullname)
|
||||||
stab.row(fullname, bytes)
|
stab.row(fullname, str(bytes))
|
||||||
matches += 1
|
matches += 1
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user