mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
flake8 fixes
This commit is contained in:
parent
050c9caa3d
commit
3d2287ef49
@ -79,7 +79,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
|
|||||||
self.conversion_options.update({'title_sort': title})
|
self.conversion_options.update({'title_sort': title})
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
# Bad date
|
# Bad date
|
||||||
self.log('Cannot parse next issue date from:', next_issue_date)
|
self.log('Cannot parse next issue date from:', next_issue_text)
|
||||||
|
|
||||||
# Get pages first from the sub-menu, and then from the contents panel.
|
# Get pages first from the sub-menu, and then from the contents panel.
|
||||||
# Duplicates will be eliminated automatically.
|
# Duplicates will be eliminated automatically.
|
||||||
@ -103,7 +103,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not articles:
|
if not articles:
|
||||||
abort_recipe_processing('Private-Eye Online index of pages not found');
|
raise ValueError('Private-Eye Online index of pages not found')
|
||||||
|
|
||||||
# Add the About page as a final article
|
# Add the About page as a final article
|
||||||
articles.append({
|
articles.append({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user