From 1ca227b8be7f341b0c6251257c2c1a39b6eb32c2 Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Tue, 15 Oct 2024 19:53:26 +0800 Subject: [PATCH] fix: fetch api always returns retry limit exceeded Fixes: 5492aee0d603a6de49d59e8800e30be45a66bfa9 (feature: new fetch api for retry) --- src/ncmlyrics/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncmlyrics/api.py b/src/ncmlyrics/api.py index 4d15740..685db41 100644 --- a/src/ncmlyrics/api.py +++ b/src/ncmlyrics/api.py @@ -211,7 +211,7 @@ class NCMApi: if retry < 0: retry = 0 - while retry < 0: + while retry >= 0: try: return self._httpClient.send(request) except Exception: