1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s4:scripting: Let error definition generation scripts tolerate empty lines

Commit beb99b80612556bc47e72a63f89fca75839d91d4 add a similar check just
for gen_hresult.py.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joseph Sutton 2024-01-11 11:12:21 +13:00 committed by Joseph Sutton
parent a1bf1b2289
commit 484a1a301a

View File

@ -54,6 +54,8 @@ def parseErrorDescriptions( file_contents, isWinError, transformErrorFunction ):
continue
content = line.strip().split(None,1)
# start new error definition ?
if len(content) == 0:
continue
if line.startswith("0x"):
newError = ErrorDef()
newError.err_code = int(content[0],0)