restart on error

My repl is a discord bot the fetches from an api, and i would prefer not to have to restart it every time someone makes a spelling mistake, so is there a way to have my repl restart on an error

You are viewing a single comment. View All

What exactly do you mean by restart on error? do you mean like if your entire program crashes, you want the repl to automatically restart?


@Highwayman I guess, this can be what is he thinking of.


Yeah, but looking at it again, it looks more like the api throws an exception or something, which is way easier to recover from. @vitasehnalek