diff --git a/cli/src/Service/Login.php b/cli/src/Service/Login.php index 32c4357..dd2a588 100644 --- a/cli/src/Service/Login.php +++ b/cli/src/Service/Login.php @@ -86,7 +86,7 @@ class Login } catch (Exception $exception) { $this->logger->notice($exception); $savedToken = $this->login(); - if ($savedToken === '') { + if ($savedToken === '' and file_exists($this->tokenFilename)) { unlink($this->tokenFilename); return ''; }