mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 01:29:42 +00:00
🐛 Fix unbound user in game plugins
This commit is contained in:
parent
2ef50e7efe
commit
4d37de28b6
@ -405,6 +405,8 @@ class GenshinHelper(Plugin):
|
||||
if uid < 10:
|
||||
raise PlayerNotFoundError(user_id)
|
||||
region = RegionEnum.HYPERION if uid < 600000000 else RegionEnum.HOYOLAB
|
||||
if uid is None and region is None:
|
||||
raise PlayerNotFoundError(user_id)
|
||||
async with self.public_genshin(user_id, region, uid) as client:
|
||||
try:
|
||||
client.public = True
|
||||
|
Loading…
Reference in New Issue
Block a user