Compare commits

..
3 Commits
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.13-slim-bullseye
FROM python:3.12-slim-bullseye
LABEL maintainer="admin@yoursfunny.top"
+2 -2
View File
@@ -1,4 +1,4 @@
python-telegram-bot[webhooks]~=22.5
python-telegram-bot[webhooks]~=22.8
httpx[http2]~=0.27
uvloop~=0.22; sys_platform != 'win32'
async-pixiv @ git+https://github.com/TheFunny/async-pixiv@main
async-pixiv~=1.1.2
+2 -2
View File
@@ -3,7 +3,7 @@ from __future__ import annotations
from typing import Literal, TYPE_CHECKING
from async_pixiv import PixivClient
from async_pixiv.error import ApiError
from async_pixiv.error import APIError
if TYPE_CHECKING:
from async_pixiv.model.illust import Illust
@@ -133,7 +133,7 @@ class ProcessPixiv(_ProcessPixiv):
illust_id = self._parse_illust_id()
try:
return (await self._client.ILLUST.detail(illust_id)).illust
except ApiError:
except APIError:
await self.refresh_token()
return (await self._client.ILLUST.detail(illust_id)).illust # TODO use retry here