Fail ignoring java.lang.IllegalStateException Error

Sorry “catch” is what other languages use. Python uses “except”. I think your only mistake is putting a pair of parentheses on callbackCatch where you use it. When passing a function to be called later, leave off the parentheses.

And please edit your posts to use code formatting blocks, using triple backquotes, like so:
```
pasted code
```

1 Like