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