EdwardBetts / depicts

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

AssertionError https://art.wikidata.link/save/Q19906105 #2

Closed Pharos-zz closed 4 years ago

Pharos-zz commented 4 years ago

URL: https://art.wikidata.link/save/Q19906105

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 220, in save assert no_existing_edit(item_id, depicts_id) AssertionError

EdwardBetts commented 4 years ago

I think it is failing because you're trying to add Mordecai (Q1136380) to the painting, but it already has a statement with that depicts item.

https://www.wikidata.org/w/index.php?title=Q19906105&diff=1025282956&oldid=915192517

Pharos-zz commented 4 years ago

Yes, that's it, someone else had already put up one of the depicts statements. I tried the same painting again without the conflicting statement, and it worked fine.

On Fri, Oct 4, 2019 at 2:51 PM Edward Betts notifications@github.com wrote:

I think it is failing because you're trying to add Mordecai (Q1136380) to the painting, but it already has a statement with that depicts item.

https://www.wikidata.org/w/index.php?title=Q19906105&diff=1025282956&oldid=915192517

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