except Exception(e): causes a NameError if an exception is caught.
---
makewrappers | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/makewrappers b/makewrappers
index fa514ba..1927f75 100755
--- a/makewrappers
+++ b/makewrappers
@@ -578,7 +578,7 @@ def process_wrapfuncs(port):
func.directory = directory
funcs[func.name] = func
sys.stdout.write(".")
- except Exception(e):
+ except Exception as e:
print("Parsing failed:", e)
exit(1)
funclist.close()
--
2.11.0
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto