flake8 fixes

This commit is contained in:
Kovid Goyal 2023-07-02 07:20:06 +05:30
parent 050c9caa3d
commit 3d2287ef49
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -79,7 +79,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
self.conversion_options.update({'title_sort': title})
except (TypeError, ValueError):
# 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.
# Duplicates will be eliminated automatically.
@ -103,7 +103,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
})
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
articles.append({