Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-458

User has spotify importer error

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • import tools
    • None

      This is from the spotify importer log:

       

      2019-06-26 11:15:30,047 INFO Importing spotify listens for user <Spotify(user:5927): igorfradi>^M
      2019-06-26 11:15:30,107 CRITICAL spotify_reader could not import listens: 'NoneType' object is not subscriptable^M
      Traceback (most recent call last):^M
      File "/code/listenbrainz/listenbrainz/spotify_updater/spotify_read_listens.py", line 299, in process_all_spotify_users^M
      process_one_user(u)^M
      File "/code/listenbrainz/listenbrainz/spotify_updater/spotify_read_listens.py", line 254, in process_one_user^M
      listens = parse_and_validate_spotify_plays([currently_playing['item']], LISTEN_TYPE_PLAYING_NOW)^M
      File "/code/listenbrainz/listenbrainz/spotify_updater/spotify_read_listens.py", line 220, in parse_and_validate_spotify_plays^M
      listen = _convert_spotify_play_to_listen(play, listen_type=listen_type)^M
      File "/code/listenbrainz/listenbrainz/spotify_updater/spotify_read_listens.py", line 63, in _convert_spotify_play_to_listen^M
      album = track['album']^M
      TypeError: 'NoneType' object is not subscriptable^M
      2019-06-26 11:15:30,110 INFO Took a total of 0.06 seconds to process user <Spotify(user:5927): igorfradi>^M

            Unassigned Unassigned
            rob Robert Kaye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package