mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 16:28:57 +05:30
Added exceptions for pld getheader()
This commit is contained in:
parent
201df8d366
commit
cef4720e42
@ -38,7 +38,8 @@ class pyPldHeader:
|
||||
# Store C Struct in order to call C functions
|
||||
self.cstruct = PldHeader()
|
||||
if filedata:
|
||||
devil1pld.getheader(ctypes.byref(self.cstruct), filedata)
|
||||
if not devil1pld.getheader(ctypes.byref(self.cstruct), filedata):
|
||||
raise RuntimeError("failed to get .pld header")
|
||||
self.eof = len(filedata)
|
||||
|
||||
def show(self):
|
||||
|
Loading…
Reference in New Issue
Block a user