Skip to content

Error writing file: TypeError: sequence item 0: expected str instance, NoneType found #58

Description

@User5910

After successfully loading 140 playlists this error appears after "Writing files..." is logged:

Traceback (most recent call last):
  File "spotify-backup.py", line 221, in <module>
    main()
  File "spotify-backup.py", line 202, in main
    artists=', '.join([artist['name'] for artist in track['track']['artists']]),
TypeError: sequence item 0: expected str instance, NoneType found

Using current version of script with Python 3.7.3 from Visual Studio on Windows 10.

This is not an issue when using the --format=json argument.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions