0001905: BUG in book command line report KeyError: 'bookname'

svn: r10300
This commit is contained in:
Brian Matherly 2008-03-14 03:53:26 +00:00
parent 8fb50257d8
commit 961b06d57b

View File

@ -1182,6 +1182,10 @@ def cl_report(database, name, category, options_str_dict):
# Exit here if show option was given
if clr.show:
return
if not clr.options_dict.has_key('bookname'):
print "Please Specify a book name"
return
book_list = BookList('books.xml', database)
book_name = clr.options_dict['bookname']