fix
This commit is contained in:
parent
b9400b571e
commit
bc9f581226
@ -1,7 +1,7 @@
|
||||
import json
|
||||
import time
|
||||
from datetime import datetime
|
||||
from os import listdir
|
||||
from os import listdir, remove
|
||||
from os.path import exists
|
||||
from typing import List
|
||||
|
||||
@ -58,6 +58,7 @@ class Player:
|
||||
path = await draw_char_card(data)
|
||||
msg = await app.send_photo(channel_id, path)
|
||||
self.all_char.append(gen_char_dict(i, msg.photo.file_id))
|
||||
remove(PLAYER_PATH / self.uid / f"{i}.json")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user