Page MenuHomePhabricator

generate_family_file.py fails with exception trace if frontpage is not a mediawiki site
Open, Needs TriagePublic

Description

fails badly if given a URL which isnt the front page of a wiki

$ python ./generate_family_file.py http://genealogy.net/ gene
Generating family file from http://genealogy.net/
Traceback (most recent call last):

File "./generate_family_file.py", line 317, in <module>
  FamilyFileGenerator(*sys.argv[1:]).run()
File "./generate_family_file.py", line 93, in run
  w = Wiki(self.base_url)
File "./generate_family_file.py", line 258, in __init__
  self._parse_post_117(wp, fromurl)
File "./generate_family_file.py", line 286, in _parse_post_117
  apipath = wp.edituri.split("?")[0]

AttributeError: WikiHTMLPageParser instance has no attribute 'edituri'


Version: core-(2.0)
Severity: normal
See Also:
T56963: generate_family_file.py: WARNING: Api does not seem to be enabled
T74873: Family generator detection (tracking)

Details

Reference
bz72845

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:55 AM
bzimport set Reference to bz72845.
bzimport added a subscriber: Unknown Object (????).
jayvdb created this task.Nov 1 2014, 4:57 AM

genealogy.net wikis (http://wiki-en.genealogy.net/Main_Page) will be desupported by T245350