きれそう

This commit is contained in:
suti7yk5032 2024-07-07 15:48:43 +09:00
parent 4ecf209e7e
commit 73502817e0

View file

@ -60,6 +60,7 @@ class DL():
print("データベースに接続できません。\nエラー内容\n" + error)
result = {"result": "error"}
finally:
return result
@ -140,7 +141,6 @@ class Bot(discord.Client):
finally:
cursor.close()
return result
def stop(self, **kwargs):
@ -164,6 +164,8 @@ class Bot(discord.Client):
print("停止処理にエラーが発生しました。")
result = {"result": "error"}
finally:
cursor.close()
return result
def user_register(self, **kwargs):
@ -187,7 +189,6 @@ class Bot(discord.Client):
finally:
cursor.close()
return result
def report_export(self, **kwargs):
@ -234,7 +235,6 @@ class Bot(discord.Client):
finally:
cursor.close()
return result
async def on_ready(self):