-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicit handling of IO errors related to credentials file (#113)
* Combine _login and _silent_login into a single function * Catch JSONDecodeError (as ValueError, for Python2 compat) * Catch PermissionError/FileNotFoundError (as OSError/IOError or using `os`, for Python2 compat) * Call warnings.warn() from API, click.echo() from CLI
- Loading branch information
Showing
3 changed files
with
146 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters