mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
adapter_syosetucom 'is' isn't '=='--generated SyntaxWarning
This commit is contained in:
parent
434ff0de74
commit
f45a05ddb6
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ class SyosetuComAdapter(BaseSiteAdapter):
|
|||
div['class'] = 'novel_a'
|
||||
else:
|
||||
div['class'] = 'novel_honbun'
|
||||
if self.getConfig('include_author_notes', True) or div['class'] is 'novel_honbun':
|
||||
if self.getConfig('include_author_notes', True) or div['class'] == 'novel_honbun':
|
||||
text_divs.append(unicode(div))
|
||||
if not text_divs:
|
||||
raise exceptions.FailedToDownload("Error downloading Chapter: %s! Missing required element!" % url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue