From 62579ed6b0bf730e3bea4d8580771df3581e054a Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 20 Jul 2017 11:25:19 +0100 Subject: [PATCH] Add tracebacks to deploy exceptions --- scripts/redeploy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/redeploy.py b/scripts/redeploy.py index a6e4bbc70..e10a48c00 100755 --- a/scripts/redeploy.py +++ b/scripts/redeploy.py @@ -13,6 +13,7 @@ from __future__ import print_function import json, requests, tarfile, argparse, os, errno import time +import traceback from urlparse import urljoin from flask import Flask, jsonify, request, abort @@ -124,6 +125,7 @@ def fetch_jenkins_build(job_name, build_num): try: extracted_dir = deploy_tarball(tar_gz_url, build_dir) except DeployException as e: + traceback.print_exc() abort(400, e.message) create_symlink(source=extracted_dir, linkname=arg_symlink)