Fix CLI bug with opts.search_text = None

This commit is contained in:
GRiker 2010-01-23 08:46:10 -07:00
parent f4865b39de
commit 99abeff636

View File

@ -758,7 +758,10 @@ class EPUB_MOBI(CatalogPlugin):
if self.opts.ids:
self.opts.search_text = search_phrase
else:
self.opts.search_text = self.opts.search_text + " " + search_phrase
if self.opts.search_text:
self.opts.search_text += " " + search_phrase
else:
self.opts.search_text = search_phrase
# Fetch the database as a dictionary
data = self.plugin.search_sort_db(self.db, self.opts)