CommandHelper

CommandHelper

46.5k Downloads

Core Error with cleartask()

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2984 - Reported by mussonking

I've been running an old version of CH for months, now that I updated I get an error which tells me to report to the developer...
here is the error pasted from console:
http://paste.thezomg.com/15157/35771014/

commented

Comment by PseudoKnight

--You seem to be specifying a specific task id "15", when you couldn't possibly know that it'll be that id. Since you can't specify a task id when creating a task, the argument in clear_task() should always be a variable.-- It seems it just reports it in plain text. What method did you retrieve the id and is there any other way it was cleared?

There's at least one bug here, though, as it should ignore invalid ids according to the documentation, even if it's out of range.

commented

Comment by PseudoKnight

Oh, this was fixed 3 days before this issue was submitted.