Closed pspacek closed 7 years ago
I copy/pasted that logic from the old extension. @lutter Is this correct?
Yes, testing ret < 0
is the right way to test if there's been an error. You can get more detailed error codes by checking aug_error(aug) != AUG_NOERROR
(that should only be true if the previous call returned with a negative value)
Errors reported by C library were not detected properly so ValueError was never raised.