summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index c3015b9..70cd670 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -3088,6 +3088,8 @@ init_tkinter(void)
#endif
m = Py_InitModule("_tkinter", moduleMethods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
Tkinter_TclError = PyErr_NewException("_tkinter.TclError", NULL, NULL);