summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenModule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py
index 2baa398..f55de97 100644
--- a/Tools/bgen/bgen/bgenModule.py
+++ b/Tools/bgen/bgen/bgenModule.py
@@ -75,7 +75,7 @@ class Module(GeneratorGroup):
Output()
def exceptionInitializer(self):
- return """PyString_FromString("%s.Error")""" % self.name
+ return """PyErr_NewException("%s.Error", NULL, NULL)""" % self.name
def _test():