mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Show full exception traceback if pip import failes but pip exists (PY-7782).
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user