mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
IGN:Fix regression that prevented error being raised when no username and password are specified in the GUI for a recipe that needs them
This commit is contained in:
@@ -501,8 +501,10 @@ class BasicNewsRecipe(Recipe):
|
||||
if isinstance(self.feeds, basestring):
|
||||
self.feeds = [self.feeds]
|
||||
|
||||
if self.needs_subscription and (self.username is None or self.password is None):
|
||||
raise ValueError('The %s recipe needs a username and password.'%self.title)
|
||||
if self.needs_subscription and (\
|
||||
self.username is None or self.password is None or \
|
||||
(not self.username and not self.password)):
|
||||
raise ValueError(_('The "%s" recipe needs a username and password.')%self.title)
|
||||
|
||||
self.browser = self.get_browser()
|
||||
self.image_map, self.image_counter = {}, 1
|
||||
|
||||
Reference in New Issue
Block a user