s4-scripting: let gen_hresult.py tolerate empty lines.
authorGünther Deschner <gd@samba.org>
Fri, 19 Aug 2016 22:32:39 +0000 (00:32 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 22 Aug 2016 23:06:24 +0000 (01:06 +0200)
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/scripting/bin/gen_hresult.py

index 176c89de496ca56f5c7266e73e0052ad2a9492bc..d49aef9a0b4769c1a94b0ae9181b4e0a605894c6 100755 (executable)
@@ -50,6 +50,8 @@ def parseErrorDescriptions( input_file, isWinError ):
     for line in fileContents:
         content = line.strip().split(None,1)
         # start new error definition ?
+        if len(content) == 0:
+            continue
         if line.startswith("0x"):
             newError = ErrorDef()
             newError.err_code = content[0]