jenkins-bot has submitted this change and it was merged.
Change subject: Fast fixation of the Bug: 57879 ......................................................................
Fast fixation of the Bug: 57879
The problem in this code is we call page.get() (indirectly) two times and the exception behave inproperly in this situation,
so I bypassed (not fixed) this error by introducing a new variable in order to avoid caching
Bug: 57879 Change-Id: I959e054945c707dcf92ff7061532758e0e1ce9a9 --- M solve_disambiguation.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/solve_disambiguation.py b/solve_disambiguation.py index 8fe8cd6..41550b0 100644 --- a/solve_disambiguation.py +++ b/solve_disambiguation.py @@ -894,7 +894,8 @@ self.alternatives += links else: try: - target = disambPage.getRedirectTarget().title() + disambPage2 = pywikibot.Page(disambPage.site(), disambPage.title()) + target = disambPage2.getRedirectTarget().title() self.alternatives.append(target) except pywikibot.NoPage: pywikibot.output(u"The specified page was not found.")