Quote:
Originally Posted by Firedancer885
Code:
Traceback (most recent call last):
File "downloader.py", line 317, in <module>
main(sys.argv[1:])
File "downloader.py", line 248, in main
adapter.getStoryMetadataOnly()
File "/fanficdownloadercli/fanficdownloader/adapters/base_adapter.py", line 261, in getStoryMetadataOnly
self.story.setMetadata('dateUpdated',self.story.getMetadataRaw('datePublished'))
File "/fanficdownloadercli/fanficdownloader/story.py", line 269, in setMetadata
self.addToList('lastupdate',value.strftime("Last Update Year/Month: %Y/%m"))
AttributeError: 'NoneType' object has no attribute 'strftime'
Thank you for the cli suggestion  I used the Imagine.e-fic adapter as base for the new adapter. What do I need to change?
|
Work through it by visiting each of the stack trace areas. This time, start from the bottom.
- story.py, line 269 - When setting dateUpdated, it's trying to strftime on a None.
- base_adapter.py, line 26 - When dateUpdated isn't set, it tries to set it to the same value as datePublished.
So that tells you that your adapter is setting datePublished to None, or not setting it.