Skip to content

Commit d93689e

Browse files
committed
fix: restart error
Signed-off-by: xtex <[email protected]>
1 parent e37aeb7 commit d93689e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/utils/bot.py

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async def load_prompt(bot) -> None:
5353
author_cache = os.path.abspath(PrivateAssets.path + '/cache_restart_author')
5454
loader_cache = os.path.abspath(PrivateAssets.path + '/.cache_loader')
5555
no_load_succ = os.path.abspath(PrivateAssets.path + '/xtex_no_load_succ')
56+
author = None
5657
if os.path.exists(author_cache):
5758
open_author_cache = open(author_cache, 'r')
5859
author = json.loads(open_author_cache.read())['ID']

0 commit comments

Comments
 (0)