openzim / openedx

Open edX (to zim) scraper
GNU General Public License v3.0
8 stars 7 forks source link

AttributeError with discussions included failed on zimfarm #102

Closed satyamtg closed 4 years ago

satyamtg commented 4 years ago

This run failed with the following AttributeError -

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/entrypoint.py", line 195, in main
    scraper.run()
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/scraper.py", line 770, in run
    self.get_content()
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/scraper.py", line 501, in get_content
    self.head_course_xblock.download(self.instance_connection)
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/xblocks_extractor/course.py", line 18, in download
    x.download(instance_connection)
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/xblocks_extractor/chapter.py", line 14, in download
    x.download(instance_connection)
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/xblocks_extractor/sequential.py", line 14, in download
    x.download(instance_connection)
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/xblocks_extractor/vertical.py", line 84, in download
    x.download(instance_connection)
  File "/usr/local/lib/python3.8/site-packages/openedx2zim-1.0.0.dev0-py3.8.egg/openedx2zim/xblocks_extractor/discussion.py", line 33, in download
    for thread in self.scraper.forum.thread:
AttributeError: 'MoocForum' object has no attribute 'thread'

This shall be fixed