Skip to content

Commit

Permalink
循环导入
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc committed Jul 20, 2022
1 parent 8c0fd08 commit 25c64ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mirai/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

from pydantic import ValidationError

from mirai.models.api import ApiModel


class NetworkError(RuntimeError):
"""网络连接出错。"""
Expand Down Expand Up @@ -65,6 +63,7 @@ def __init__(self, err: ValidationError):
Args:
err(`str`): pydantic 的解析错误。
"""
from mirai.models.api import ApiModel
self._err = err
model = cast(Type[ApiModel], err.model)
try:
Expand Down

0 comments on commit 25c64ad

Please sign in to comment.