send excpetions from get_softcal_converter and get_hardcal_converter
authorÉric Piel <piel@delmic.com>
Fri, 19 Oct 2012 14:50:50 +0000 (16:50 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Oct 2012 00:05:30 +0000 (20:05 -0400)
this allows to catch them from _get_converter()

pycomedi/channel.pyx

index 41cdbd31ea7a4eafd9824273e77c7f1f8b279a11..b71129f0d7bd7cf05e097cc7902f0d3591b710e9 100644 (file)
@@ -384,7 +384,7 @@ cdef class AnalogChannel (Channel):
 
 
     cdef _comedilib_h.comedi_polynomial_t get_softcal_converter(
-        self, direction, _Calibration calibration):
+        self, direction, _Calibration calibration) except *:
         """
 
         `direction` should be a value from `constant.CONVERSION_DIRECTION`.
@@ -401,7 +401,7 @@ cdef class AnalogChannel (Channel):
         return poly
 
     cdef _comedilib_h.comedi_polynomial_t get_hardcal_converter(
-        self, direction):
+        self, direction) except *:
         """
 
         `direction` should be a value from `constant.CONVERSION_DIRECTION`.