mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
Adjust comment
This commit is contained in:
parent
0e061b2e7f
commit
0172eae91e
@ -71,6 +71,9 @@ def get_bot() -> NoneBot:
|
||||
"""
|
||||
Get the NoneBot instance.
|
||||
|
||||
The result is ensured to be not None, otherwise an exception will
|
||||
be raised.
|
||||
|
||||
:raise ValueError: instance not initialized
|
||||
"""
|
||||
if _bot is None:
|
||||
|
Loading…
Reference in New Issue
Block a user