From a74f3b6856ca1a5e4425bcad39ac3706009ef538 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 14 Oct 2018 17:21:15 +0200 Subject: github-lambda: print traceback on errors --- src/blogc-github-lambda/lambda_function.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blogc-github-lambda/lambda_function.py.in b/src/blogc-github-lambda/lambda_function.py.in index a6cdc6f..b31b75e 100644 --- a/src/blogc-github-lambda/lambda_function.py.in +++ b/src/blogc-github-lambda/lambda_function.py.in @@ -22,9 +22,10 @@ import hashlib import json import mimetypes import os +import shutil import subprocess import tarfile -import shutil +import traceback try: import urllib.request as urllib2 except ImportError: @@ -240,6 +241,7 @@ def api_gateway_handler(event): try: blogc_handler(body) except Exception as err: + traceback.print_exc() return api_gateway_response(500, 'ERROR: %s' % err) return api_gateway_response(201, 'ACCEPTED') -- cgit v1.2.3-18-g5258