mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 修复更新 cookies
数据时读取错误的问题
This commit is contained in:
parent
b173c3e90d
commit
6fabd248e6
@ -36,7 +36,7 @@ class CookiesRepository:
|
|||||||
else:
|
else:
|
||||||
raise RegionNotFoundError(region.name)
|
raise RegionNotFoundError(region.name)
|
||||||
results = await session.exec(statement)
|
results = await session.exec(statement)
|
||||||
db_cookies = results.one()
|
db_cookies = results.first()
|
||||||
if db_cookies is None:
|
if db_cookies is None:
|
||||||
raise CookiesNotFoundError(user_id)
|
raise CookiesNotFoundError(user_id)
|
||||||
db_cookies = db_cookies[0]
|
db_cookies = db_cookies[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user