Show full exception traceback if pip import failes but pip exists (PY-7782).

This commit is contained in:
Dmitry Trofimov
2012-10-10 19:11:06 +02:00
parent d3eb44488b
commit 4aeff437f4
+5 -1
View File
@@ -31,7 +31,11 @@ def error(message, retcode):
def error_no_pip():
error("Python package management tool 'pip' not found", ERROR_NO_PIP)
tb = sys.exc_traceback
if tb is not None and tb.tb_next is None:
error("Python package management tool 'pip' not found", ERROR_NO_PIP)
else:
error(traceback.format_exc(), ERROR_EXCEPTION)
def do_list():