Skip to content

[get-status] Uncaught exception when token has expired #47

@ProtossGP32

Description

@ProtossGP32

Describe the bug
When the authentication token has expired, woffu-cli get-status returns the following error:

woffu-cli get-status
:x: Error retrieving status: 'str' object has no attribute 'get'

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you have an invalid or expired token in your config file
  2. Execute woffu-cli get-status
  3. See error

Expected behavior
The CLI should tell the user that the token has expired and prompt it to re-create it.

Screenshots
None

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: None
  • Version 0.1.7

Additional context
None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions