mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-04 13:36:37 +00:00
Fix NoneType error
This commit is contained in:
parent
bbffd83f03
commit
92487d4ed4
@ -219,7 +219,7 @@ def run_bindgen(args, bindings):
|
||||
if not args.expect_bindgen_fail and child.returncode != 0:
|
||||
exit_1("Error: running `bindgen` failed", child)
|
||||
|
||||
for arg in args.bindings_grep:
|
||||
for arg in args.bindings_grep or []:
|
||||
pattern = regexp(arg)
|
||||
with open(bindings, mode="r") as f:
|
||||
if not contains(pattern, f):
|
||||
|
Loading…
Reference in New Issue
Block a user