Bug - Fixed session_logs(-1) causes debug error

Crowther

Active member
Today's day zero and my script was poorly written. . .


> ash session_logs(-1)

Unexpected error, debug log printed.
Script execution aborted
Returned: void
 
Don't do that.
Yeah it was dumb. The problem is when KoLmafia aborts like this it doesn't tell me where the error was. I had to do a binary search with debugging lines.

What I'd really like is a function that returns the days since the PvP season started, but that's asking for too much.
 
Revision 12420 throws a normal exception for session_logs(-1), since that is not a sensible request. It also prints line and file for unexpected Exceptions of the sort you originally experienced, so you can at least see where the problem was. Hopefully you'll (and others) still report such exceptions, since the stack trace will help us fix the KoLmafia error.
 
Back
Top