Last modified: 2014-11-09 17:51:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74845, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72845 - generate_family_file.py fails with exception trace if frontpage is not a mediawiki site
generate_family_file.py fails with exception trace if frontpage is not a medi...
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-01 04:57 UTC by John Mark Vandenberg
Modified: 2014-11-09 17:51 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-11-01 04:57:30 UTC
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'

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links