使用履歴出力のreturn修正

This commit is contained in:
suti7yk5032 2024-07-08 11:30:20 +09:00
parent abf03bd4d6
commit 889c464c5f

View file

@ -258,7 +258,8 @@ class Bot(discord.Client):
wb.save(excel_file_path)
print(f"テーブル '{main_table}' の内容を '{excel_file_path}' に出力しました。")
result = {"result": "ok", "file_path": excel_file_path}
except (Exception, psycopg2.Error) as error:
print("使用履歴のエクスポート時にエラーが発生しました\nエラー内容\n", str(error))
result = {"result": "export_error"}