Closed alvations closed 8 years ago
Did you mean to close this?
Yeah, I closed it because there are other valid reasons for ConnectionError
so I'm not sure whether that's a good way to check. I think i'll leave it closed unless you want to add the feature, if so feel free to merge it. I've tested the try-except
and it does remind the user if the CoreNLP server is not started =)
Hmm, I bet this will be the most common reason for a ConnectionError
though. So I'll merge it in for now, and can modify later if other reasons come up. Thanks! :)
I think an unambiguous error message would be better than getting a connection error, letting users think that they might have been timed-out, e.g. #3. So I added the assert checks.