From 4e8e405c56852573c0f1831f2889db977123336f Mon Sep 17 00:00:00 2001 From: Anipik Date: Mon, 19 Mar 2018 16:26:55 -0700 Subject: [PATCH] using traceback --- .../PackageFiles/DumplingHelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Build.CloudTestTasks/PackageFiles/DumplingHelper.py b/src/Microsoft.DotNet.Build.CloudTestTasks/PackageFiles/DumplingHelper.py index 7b9258433d..371b459747 100644 --- a/src/Microsoft.DotNet.Build.CloudTestTasks/PackageFiles/DumplingHelper.py +++ b/src/Microsoft.DotNet.Build.CloudTestTasks/PackageFiles/DumplingHelper.py @@ -7,6 +7,7 @@ import sys import subprocess import string +import traceback def get_timestamp(): print(time.time()) @@ -31,7 +32,7 @@ def install_dumpling(): except urllib2.URLError, e: print(e.reason) except: - print("An unexpected error was encountered while installing dumpling.py: " + sys.exc_info()[0]) + print("An unexpected error was encountered while installing dumpling.py: " + traceback.format_exc()) def ensure_installed(): if (not os.path.isfile(dumplingPath)):