From 7495081c6cd7350e1a664d76757451cfb3f75446 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 21 Jul 2004 05:34:47 +0000 Subject: [PATCH] Patch #984714: Properly diagnose E_DECODE errors. --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3985cd3191f8..5ade3652a498 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1482,6 +1482,9 @@ err_input(perrdetail *err) break; } } + if (msg == NULL) + msg = "unknown decode error"; + break; } default: fprintf(stderr, "error=%d\n", err->error); -- 2.47.3