Minor changes in code to improve readability and fix C compilation
warnings
This commit is contained in:
@ -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) :
|
||||
|
Reference in New Issue
Block a user