summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2022-08-03 15:48:56 +0200
committerMarcel Hellkamp <marc@gsites.de>2022-08-03 15:48:56 +0200
commit9d523f6576d98d093ab92c72a11f598b7073479b (patch)
treef9f5f2a9f5cb280c86a3bef947501c3257c029b2
parentfd78d672ebb362f0e5116ad7c0057da114b25b40 (diff)
downloadbottle-9d523f6576d98d093ab92c72a11f598b7073479b.tar.gz
fix #1356: JSONPlugin obscures traceback
-rwxr-xr-xbottle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bottle.py b/bottle.py
index b789dd5..04fdf6f 100755
--- a/bottle.py
+++ b/bottle.py
@@ -1994,6 +1994,7 @@ class JSONPlugin(object):
dumps = self.json_dumps
if not self.json_dumps: return callback
+ @functools.wraps(callback)
def wrapper(*a, **ka):
try:
rv = callback(*a, **ka)