Skip to content

Commit

Permalink
🐛 fix: use the right exception
Browse files Browse the repository at this point in the history
Signed-off-by: Fox_white <[email protected]>
  • Loading branch information
foxwhite25 committed Nov 19, 2024
1 parent 8f29630 commit 1cb95fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__title__ = 'qq'
__author__ = 'Foxwhite'
__license__ = 'MIT'
__version__ = '1.3.21'
__version__ = '1.3.22'

# The MIT License (MIT)
# Copyright (c) 2021-present foxwhite25
Expand Down Expand Up @@ -63,4 +63,4 @@ class VersionInfo(NamedTuple):
serial: int


version_info: VersionInfo = VersionInfo(major=1, minor=3, micro=21, releaselevel='final', serial=0)
version_info: VersionInfo = VersionInfo(major=1, minor=3, micro=22, releaselevel='final', serial=0)
2 changes: 1 addition & 1 deletion qq/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ async def request(
await asyncio.sleep(backoff.delay())
continue
raise
except QQServerError as e:
except HTTPException as e:
if tries < 6 and e.code in (620006, 100017):
await asyncio.sleep(backoff.delay())
continue
Expand Down

0 comments on commit 1cb95fe

Please sign in to comment.