Page MenuHomePhabricator

Change 8fb998ba makes generate_family_file.py return exit code 1
Closed, ResolvedPublic

Description

...even when it might generate family file successfully.

https://travis-ci.org/github/wikimedia/pywikibot/jobs/697281670#L408

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript

Any idea why this breaking happens?

I think I've localized the problem:
generate_family_file.py is called with pwb.py wrapper for musicbrainz (whereas for other sites generate_family_file.py is called directly. Normally pwb.py imports pywikibot which imports config.py which expects user-config.py. The direct call of generate_family_file .py uses _import_with_no_user_config. If pwb.py is used it expects RuntimeError in line 219 and set 'PYWIKIBOT_NO_USER_CONFIG' to 2. it does not generate_user_files if generate_family_file.py is running.

Xqt triaged this task as High priority.Jun 13 2020, 9:42 AM
Xqt claimed this task.