You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seemes to have fixed part of the problem as it gets to about 80% complete before throwing this error
1434/1750 81%Traceback (most recent call last):
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 339, in
clas=MakeClass(i)
^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 202, in MakeClass
site=sitesdomain
^^^^^^^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 21, in
'chyoa.com':lambda x:Chyoa.Chyoa(x),
^^^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Site\Chyoa.py", line 239, in init
self.AddNextPage(self.pageQueue.pop(0))
File "C:\Users---\Desktop\Ebook-Publisher\Site\Chyoa.py", line 418, in AddNextPage
self.questions.append(soup.find('header', attrs={'class':"question-header"}).get_text())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_text'
The text was updated successfully, but these errors were encountered:
Can you provide the URL to the story you are trying to download? Based on the error, I'm guessing it failed on a chapter that doesn't have an end question, which I thought was impossible. Chyoa normally inserts "What's next?" as the end question if it's left blank.
I saw a previous past where someone had the same issue, so they added the following block of code to the chyoa file:
It seemes to have fixed part of the problem as it gets to about 80% complete before throwing this error
1434/1750 81%Traceback (most recent call last):
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 339, in
clas=MakeClass(i)
^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 202, in MakeClass
site=sitesdomain
^^^^^^^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Ebook-Publisher.py", line 21, in
'chyoa.com':lambda x:Chyoa.Chyoa(x),
^^^^^^^^^^^^^^
File "C:\Users---\Desktop\Ebook-Publisher\Site\Chyoa.py", line 239, in init
self.AddNextPage(self.pageQueue.pop(0))
File "C:\Users---\Desktop\Ebook-Publisher\Site\Chyoa.py", line 418, in AddNextPage
self.questions.append(soup.find('header', attrs={'class':"question-header"}).get_text())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_text'
The text was updated successfully, but these errors were encountered: