-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
https://sentry.metabrainz.org/metabrainz/acousticbrainz/issues/89774/
It looks like this method has never worked (no test?), as get_dataset returns a flask response. It looks like this method is instead expecting the response of get from the database.
TypeError: 'Response' object has no attribute '__getitem__' (2 additional frame(s) were not displayed) ... File "webserver/decorators.py", line 13, in decorated return f(*args, **kwargs) File "webserver/views/api/v1/datasets.py", line 91, in delete_dataset if ds["author"] != current_user.id: TypeError: 'Response' object has no attribute '__getitem__'