mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
error handling
This commit is contained in:
parent
81867f24ee
commit
2c49caeea1
@ -222,6 +222,7 @@ class BotCommands():
|
|||||||
filelinelist = []
|
filelinelist = []
|
||||||
currentsuccesslines = 0
|
currentsuccesslines = 0
|
||||||
for detected_line in detected_lines:
|
for detected_line in detected_lines:
|
||||||
|
try:
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
if str(detected_line).startswith("commands"):
|
if str(detected_line).startswith("commands"):
|
||||||
@ -247,6 +248,10 @@ class BotCommands():
|
|||||||
validcomdict = {"comtype": comtype, "validcoms": validcoms}
|
validcomdict = {"comtype": comtype, "validcoms": validcoms}
|
||||||
filelinelist.append(validcomdict)
|
filelinelist.append(validcomdict)
|
||||||
currentsuccesslines += 1
|
currentsuccesslines += 1
|
||||||
|
except Exception as e:
|
||||||
|
addnothing = e
|
||||||
|
if addnothing:
|
||||||
|
currentsuccesslines += 0
|
||||||
|
|
||||||
if currentsuccesslines:
|
if currentsuccesslines:
|
||||||
self.dict['counts'] += 1
|
self.dict['counts'] += 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user