From 02f565e522f9c87ddc9b7aa6dbddb4a76ecc3776 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 30 Apr 2024 19:09:50 -0500 Subject: [PATCH] Bug fix --- timers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timers.py b/timers.py index fdb9462..9e20014 100644 --- a/timers.py +++ b/timers.py @@ -17,7 +17,7 @@ def is_dead(thr: Thread) -> bool: def threadWrapper(data: dict) -> NoReturn: if not data["noWrap"]: while 1: - if ignoreErrors: + if data["ignoreErrors"]: try: data["func"](*data["args"]) except Exception: @@ -118,5 +118,5 @@ def mcDown(instance: bare.bot) -> None: data: dict[str, dict[str, Any]] = { "radio": {"noWrap": True, "func": radio, "args": []}, - "mc-down": {"noWrap": False, "func": mcDown, "args": [], "interval": 60} + "mc-down": {"noWrap": False, "func": mcDown, "args": [], "interval": 60, "ignoreErrors": True} }