EdwardBetts / depicts

Wiki Art Depiction Explorer
https://art.wikidata.link/
GNU General Public License v3.0
4 stars 3 forks source link

TypeError: sequence item 0: expected str instance, NoneType found https://art.wikidata.link/browse?P195=Q160236 #1

Closed fuzheado closed 4 years ago

fuzheado commented 4 years ago

URL: https://art.wikidata.link/browse?P195=Q160236

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request return self.view_functionsrule.endpoint File "/srv/depicts/app.py", line 769, in browse_page item_map = wdqs.build_browse_item_map(bindings) File "/srv/depicts/depicts/wdqs.py", line 116, in build_browse_item_map 'artist_name': ', '.join(artist_names), TypeError: sequence item 0: expected str instance, NoneType found

EdwardBetts commented 4 years ago

I had a problem where it was confused by paintings without authors. Fixed now.

fuzheado commented 4 years ago

Thanks!

On Mon, Sep 30, 2019 at 3:05 PM Edward Betts notifications@github.com wrote:

Closed #1 https://github.com/EdwardBetts/depicts/issues/1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EdwardBetts/depicts/issues/1?email_source=notifications&email_token=AABNU7Y6XUJHLROMR5MF53LQMJEWRA5CNFSM4I37IOTKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOT5UMUDY#event-2674444815, or mute the thread https://github.com/notifications/unsubscribe-auth/AABNU75Q7VVG5DQ7A4CRL3DQMJEWRANCNFSM4I37IOTA .

-- -Andrew Lih Author of The Wikipedia Revolution US National Archives Citizen Archivist of the Year (2016) Knight Foundation grant recipient - Wikipedia Space (2015) Wikimedia DC - Outreach and GLAM Previously: professor of journalism and communications, American University, Columbia University, USC

Email: andrew@andrewlih.com WEB: https://muckrack.com/fuzheado PROJECT: Wikipedia Space: http://en.wikipedia.org/wiki/WP:WPSPACE