Blob Blame History Raw
From 47ff9b6e128131fda5752232d55924eff7338bf6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Mon, 24 Feb 2020 18:54:54 +0100
Subject: [PATCH] Remove a leftover error line with empty exception info
 (#1659)

Since a6d6ed791d94c39b7348192503866aff6a0ba458 there is no exception to report about.

Related to https://github.com/pypa/virtualenv/pull/1651
---
 docs/changelog/1651.bugfix.rst | 2 +-
 virtualenv.py                  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/changelog/1651.bugfix.rst b/docs/changelog/1651.bugfix.rst
index 26dd9c6ac..b3cc556a3 100644
--- a/docs/changelog/1651.bugfix.rst
+++ b/docs/changelog/1651.bugfix.rst
@@ -1 +1 @@
-fix error printing in bailout for Python < 2.7 - by ``AdamWill`
+fix error printing in bailout for Python < 2.7 - by ``AdamWill` and ``hroncok``
diff --git a/virtualenv.py b/virtualenv.py
index 5968059b2..ba4bd2c28 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -50,7 +50,6 @@
 virtualenv_version = __version__  # legacy
 DEBUG = os.environ.get("_VIRTUALENV_DEBUG", None) == "1"
 if sys.version_info < (2, 7):
-    print("ERROR: {0}".format(sys.exc_info()[1]))
     print("ERROR: this script requires Python 2.7 or greater.")
     sys.exit(101)