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