Don't catch the error if we're in the CLI