pickups
pickups copied to clipboard
authorization token is not saved when hangups has never been called
observation
When just calling pickups on a system where neither pickups or hangups have been called, pickups correctly asks for the authorization token but fails to save it:
WARNING:hangups.auth:Failed to save refresh_token:
[Errno 2] No such file or directory:
'/home/okurz/.cache/hangups/cookies.json'
problem
Subsequent calls request for new authorization tokens as the old one. pickups/hangups reports a helpful warning but should create the directory $HOME/.cache/hangups itself.
workaround
mkdir $HOME/.cache/hangups before calling pickups
I saw this issue too, but this seems like an issue with the hangups code; as such I have created an issue there: tdryer/hangups#213
the hangups team appears to see this as a requirement at the application level, not the library level