Skip to content

Commit 62579ed

Browse files
committed
Add tracebacks to deploy exceptions
1 parent 01eef7e commit 62579ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/redeploy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from __future__ import print_function
1414
import json, requests, tarfile, argparse, os, errno
1515
import time
16+
import traceback
1617
from urlparse import urljoin
1718

1819
from flask import Flask, jsonify, request, abort
@@ -124,6 +125,7 @@ def fetch_jenkins_build(job_name, build_num):
124125
try:
125126
extracted_dir = deploy_tarball(tar_gz_url, build_dir)
126127
except DeployException as e:
128+
traceback.print_exc()
127129
abort(400, e.message)
128130

129131
create_symlink(source=extracted_dir, linkname=arg_symlink)

0 commit comments

Comments
 (0)