From 97dfc90d75a19ba93d2c0040f400723694a4ecf7 Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 24 Jan 2024 16:42:39 -0800 Subject: [PATCH] removed handle_error function --- sparkytron3000.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index 21a2b3e..d6a4e66 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -32,14 +32,6 @@ bot = commands.Bot(command_prefix='!', intents=intents) #discord setup END -async def handle_error(error): - print(error) - current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) - log_line = current_time + ': ' + str(error) + '\n' - with open("data/error_log.txt", 'a') as f: - f.write(log_line) - return error - async def folder_setup(): # Only tmp, extensions and data are supported, all other folders only exist for backwards compatibility and will be removed soon! folder_names = ["tmp", "extensions", "data", "channels","channels/config", "channels/logs"] @@ -64,7 +56,7 @@ async def task_loop(): try: await delete_all_files("tmp/") except Exception as error: - await handle_error(error) + print("Failed to delete_all_files") async def create_session(): return aiohttp.ClientSession()