From 8a257199a322d252118b382e4b29e9bc0d09bb37 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 5 Jul 2024 12:13:53 +0800 Subject: [PATCH] Update pocketpy.h --- include/pocketpy/pocketpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/pocketpy.h b/include/pocketpy/pocketpy.h index 3a5fcc0a..fd8a9534 100644 --- a/include/pocketpy/pocketpy.h +++ b/include/pocketpy/pocketpy.h @@ -230,7 +230,7 @@ void py_printexc(); /// Format the last error to a string. void py_formatexc(char* out); -#define KeyError(q) py_exception("KeyError", "'%q'", (q)) +#define KeyError(q) py_exception("KeyError", "%q", (q)) #define NameError(n) py_exception("NameError", "name '%n' is not defined", (n)) #define TypeError(...) py_exception("TypeError", __VA_ARGS__) #define ValueError(...) py_exception("ValueError", __VA_ARGS__)