mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Wrong copy-paste
This commit is contained in:
parent
0b0619916a
commit
3c60c67715
@ -225,8 +225,8 @@ class Query(object):
|
|||||||
attr = getattr(e, 'args', [None])
|
attr = getattr(e, 'args', [None])
|
||||||
attr = attr if attr else [None]
|
attr = attr if attr else [None]
|
||||||
if isinstance(attr[0], socket.timeout):
|
if isinstance(attr[0], socket.timeout):
|
||||||
raise NiceBooksError(_('Nicebooks timed out. Try again later.'))
|
raise AmazonError(_('Amazon timed out. Try again later.'))
|
||||||
raise NiceBooksError(_('Nicebooks encountered an error.'))
|
raise AmazonError(_('Amazon encountered an error.'))
|
||||||
if '<title>404 - ' in raw:
|
if '<title>404 - ' in raw:
|
||||||
return
|
return
|
||||||
raw = xml_to_unicode(raw, strip_encoding_pats=True,
|
raw = xml_to_unicode(raw, strip_encoding_pats=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user