makewrappers: use correct except syntax
PATCH 1/1 makewrappers: use correct except syntax
except Exception(e): causes a NameError if an exception is caught.
--- makewrappers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
makewrappers +1 -1
@@ -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()
Signature · 1 line
2.11.0