Ricordisamoa has uploaded a new change for review. https://gerrit.wikimedia.org/r/148994
Change subject: fix lookup of family in config.usernames and config.sysopnames ...................................................................... fix lookup of family in config.usernames and config.sysopnames using fam.name instead of the string representation for Family objects bug: 68440 Change-Id: I5eb9d2b39768b047290ac8c14e0201114630daed --- M pywikibot/__init__.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/94/148994/1 diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 07a40ac..de518b8 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -463,6 +463,8 @@ # Fallback to config defaults code = code or config.mylang fam = fam or config.family + if hasattr(fam, 'name'): + fam = fam.name interface = interface or config.site_interface user = user or config.usernames[fam].get(code, None) \ -- To view, visit https://gerrit.wikimedia.org/r/148994 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5eb9d2b39768b047290ac8c14e0201114630daed Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits