Commit 0dc8d83
{BugFix} mps_cli - Authentication - Handle Exception in case of invalid auth token
Summary:
This change fix the issue when the user install aria studio but the token is invalid or expired in the saved cache.
This diff is a bug fix for the authentication process in the Aria MPS CLI. The code changes in the authentication.py file handle exceptions in case of invalid auth tokens. The changes include catching exceptions such as ValueError, KeyError, OSError, and any other unexpected exceptions. If an exception occurs, the auth token cache file is removed and the function returns False. This ensures that the authentication process is not affected and the user is prompted to login again.
Reviewed By: maieneuro
Differential Revision: D78013372
fbshipit-source-id: c20fb91edc9f21fb4179c86761af1ea83782f25d1 parent 9714e56 commit 0dc8d83
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
0 commit comments