Skip to contentSkip to conversation

makewrappers: use correct except syntax

PATCH New Ross Burton 1 participant 1 message May 10, 2018

lore
Share & tools
lore
#0 lore raw

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
index fa514ba..1927f75 100755
@@ -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