Minor changes in code to improve readability and fix C compilation

warnings
This commit is contained in:
Celine Mercier
2015-11-10 14:37:58 +01:00
parent 410e2e02a0
commit 6579566c6e
5 changed files with 17 additions and 22 deletions

View File

@ -61,7 +61,8 @@ cdef class OBIDMS :
# Fill structure and create or open the DMS
self.dms_name = dms_name
self.pointer = obi_dms(<const_char_p> dms_name_b)
# TODO: test pointer and raise Exception("Failed opening or creating an OBIDMS")
if self.pointer == NULL :
raise Exception("Failed opening or creating an OBIDMS")
cpdef close(self) :