seriaati / shenhe_bot

Elevate your Hoyoverse experience. 讓你的 Hoyoverse 體驗更上一層樓。
http://shenhe.bot.nu
MIT License
52 stars 13 forks source link

ValidationError: 2 validation errors for HoyoAccount #773

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: SHENHE_BOT-12S

ValidationError: 2 validation errors for HoyoAccount
settings_db
  field required (type=value_error.missing)
cookie_db
  field required (type=value_error.missing)
  File "/home/seria/shenhe_bot/apps/genshin/auto_task/daily_checkin.py", line 71, in start
    await asyncio.gather(*tasks)
  File "/home/seria/shenhe_bot/apps/genshin/auto_task/daily_checkin.py", line 95, in _add_users_to_queue
    user = HoyoAccount(**row)
  File "/home/seria/shenhe_bot/apps/db/tables/hoyo_account.py", line 76, in __init__
    super().__init__(china=china, **kwargs)
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
    raise validation_error