0001905: BUG in book command line report KeyError: 'bookname'
svn: r10301
This commit is contained in:
parent
1464abffab
commit
3febc1e429
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user