きれそう
This commit is contained in:
parent
4ecf209e7e
commit
73502817e0
1 changed files with 8 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue