Uploaded image for project: 'CritiqueBrainz'
  1. CritiqueBrainz
  2. CB-171

Mapping page fails to load if Spotify doesn't return info about an album

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      TypeError: 'NoneType' object has no attribute '_getitem_'
      File "flask/app.py", line 1817, in wsgi_app
      response = self.full_dispatch_request()
      File "flask/app.py", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
      File "flask/app.py", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
      File "flask/app.py", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
      File "flask/app.py", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
      File "critiquebrainz/frontend/mapping/views.py", line 25, in spotify_list
      spotify_albums = spotify_api.get_multiple_albums(spotify_ids)
      File "critiquebrainz/frontend/apis/spotify.py", line 70, in get_multiple_albums
      received_albums[album['id']] = album

      See http://sentry.metabrainz.org/share/issue/342e3432/.

        Attachments

          Activity

            People

            • Assignee:
              stanislas Stanisław Szcześniak
              Reporter:
              roman Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package