Skip to content

AttributeError: 'NoneType' object has no attribute 'get' #20

Description

@hooliowobbits
$ spotify seek 0
Traceback (most recent call last):
  File "/home/hoolio/.local/bin/spotify", line 8, in <module>
    sys.exit(cli())
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/hoolio/.local/lib/python3.8/site-packages/cli/commands/seek.py", line 41, in seek
    duration_ms = status_data.get('item').get('duration_ms')
AttributeError: 'NoneType' object has no attribute 'get'

I get this on two machines, both of which were working yesterday. A Spotify API change?

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