diff Python/pythonrun.c @ 32780:517e00af13a1 2.3

Patch #984714: Properly diagnose E_DECODE errors.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 21 Jul 2004 05:34:47 +0000
parents 164ce1bcab6e
children
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Jul 21 05:08:32 2004 +0000
+++ b/Python/pythonrun.c	Wed Jul 21 05:34:47 2004 +0000
@@ -1482,6 +1482,9 @@
 				break;
 			}
 		}
+		if (msg == NULL)
+			msg = "unknown decode error";
+		break;
 	}
 	default:
 		fprintf(stderr, "error=%d\n", err->error);