6247: Crash when attempting to use Book Report

svn: r21352
This commit is contained in:
Paul Franklin 2013-02-13 18:47:44 +00:00
parent 4dc0f01137
commit 808002d419

View File

@ -4,7 +4,8 @@
# Copyright (C) 2003-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011-2012 Paul Franklin
# Copyright (C) 2012 Nick Hall
# Copyright (C) 2011-2013 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -419,9 +420,8 @@ class BookSelector(ManagedWindow):
available_reports = []
for pdata in regbi:
if not pdata.supported:
category = _UNSUPPORTED
else:
category = _UNSUPPORTED
if pdata.supported and pdata.category in book_categories:
category = book_categories[pdata.category]
available_reports.append([ pdata.name, category, pdata.id ])
for data in sorted(available_reports):