Page MenuHomePhabricator

'str' object has no attribute 'description'
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Run site detection e.g.
pwb generate_family_file_tests -v TestGenerateFamilyFiles.test_attributes_after_run

What happens?:

Loading wikis...
  * mn... downloaded
  * li... downloaded
  * za... downloaded
  * es... downloaded
  * kg... downloaded
  * wuu... downloaded
  * kbd... downloaded
  * cy... downloaded
  * pwn... downloaded
  * uz... downloaded
  * ii... 'str' object has no attribute 'description'
 15.015s ok

An AttributeError occurres.

What should have happened instead?:

A ClientError should eb raised instead

Loading wikis...
  * mt... downloaded
  * pms... downloaded
  * bn... downloaded
  * crh... downloaded
  * nap... downloaded
  * na... downloaded
  * tyv... downloaded
  * yi... downloaded
  * da... downloaded
  * kab... downloaded
  * ii... (404) Nothing matches the given URI
 16.075s ok

Pywikibot 8

Event Timeline

Xqt changed the task status from Open to In Progress.Apr 14 2023, 12:50 PM
Xqt claimed this task.
Xqt triaged this task as High priority.

Change 908831 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] only get HTTPStatus enum in site_detect check_response

https://gerrit.wikimedia.org/r/908831

Change 908831 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] only get HTTPStatus enum in site_detect check_response

https://gerrit.wikimedia.org/r/908831