[yocto] [PATCH][pseudo] makewrappers: use correct except syntax

Ross Burton ross.burton at intel.com
Thu May 10 04:58:02 PDT 2018


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



More information about the yocto mailing list