Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

using traceback to get call stack #1972

Merged
merged 1 commit into from
Mar 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sys
import subprocess
import string
import traceback

def get_timestamp():
print(time.time())
Expand All @@ -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)):
Expand Down