forked from Firepup650/FireBot
Bug fix
This commit is contained in:
parent
2339db32d3
commit
02f565e522
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ def is_dead(thr: Thread) -> bool:
|
||||||
def threadWrapper(data: dict) -> NoReturn:
|
def threadWrapper(data: dict) -> NoReturn:
|
||||||
if not data["noWrap"]:
|
if not data["noWrap"]:
|
||||||
while 1:
|
while 1:
|
||||||
if ignoreErrors:
|
if data["ignoreErrors"]:
|
||||||
try:
|
try:
|
||||||
data["func"](*data["args"])
|
data["func"](*data["args"])
|
||||||
except Exception:
|
except Exception:
|
||||||
|
@ -118,5 +118,5 @@ def mcDown(instance: bare.bot) -> None:
|
||||||
|
|
||||||
data: dict[str, dict[str, Any]] = {
|
data: dict[str, dict[str, Any]] = {
|
||||||
"radio": {"noWrap": True, "func": radio, "args": []},
|
"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}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue