Skip to content

Commit

Permalink
catch throwable instead of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas D Hedding committed Dec 8, 2021
1 parent da604d6 commit 5e3aca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Auth/LoginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function logIn(array $options = ['machine-token' => null, 'email' => null
if (isset($options['machine-token']) && !is_null($token_string = $options['machine-token'])) {
try {
$token = $tokens->get($token_string);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->log()->notice('Logging in via machine token.');
$tokens->create($token_string);
}
Expand Down

0 comments on commit 5e3aca7

Please sign in to comment.