summaryrefslogtreecommitdiff
path: root/Modules/linuxaudiodev.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-09-01 09:01:32 +0000
committerBarry Warsaw <barry@python.org>2000-09-01 09:01:32 +0000
commit1ec2aff0db81fd7814b47b0e68a8cfff24577000 (patch)
tree3cbba525f273630d4cc179e87ed2a25bcea59648 /Modules/linuxaudiodev.c
parent591e65c2ec1c98d14f1fbb677a07c24ad0c48850 (diff)
downloadcpython-1ec2aff0db81fd7814b47b0e68a8cfff24577000.tar.gz
Do the absolute minimal amount of modifications to eradicate
Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
Diffstat (limited to 'Modules/linuxaudiodev.c')
-rw-r--r--Modules/linuxaudiodev.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c
index 72ba567061..509823ed32 100644
--- a/Modules/linuxaudiodev.c
+++ b/Modules/linuxaudiodev.c
@@ -442,9 +442,6 @@ initlinuxaudiodev(void)
goto error;
Py_DECREF(x);
- /* Check for errors */
- if (PyErr_Occurred()) {
- error:
- Py_FatalError("can't initialize module linuxaudiodev");
- }
+ error:
+ return;
}