Page MenuHomePhabricator

generate_family_file.py fails with exception trace if frontpage is not a mediawiki site
Closed, DeclinedPublic

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