Skip to content

Commit 135fd4e

Browse files
committed
handle asanpardakht exception error
1 parent a5e1f43 commit 135fd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/AsanPardakhtProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function checkWalletBalance(): JsonResponse|array
6666
} catch (ClientException|\Exception $exception) {
6767
$exceptionMessage = $this->getBalanceWalletError($exception);
6868
throw new Exception((json_decode($exceptionMessage->content(), false))->message,
69-
$exceptionMessage->statusCode);
69+
$exceptionMessage->statusCode ?? 500);
7070
}
7171
}
7272

0 commit comments

Comments
 (0)