summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2019-08-05 09:40:34 +0100
committerChris Lamb <lamby@debian.org>2019-08-05 09:40:34 +0100
commitbeeb20691c7bc07aaf63a713d69d40764ab3f0cf (patch)
treef07f476dac1529203dcb7b9563c4fffb362ed530 /bin
parent342e871e42bc1f272cf56d06214acd398298dcce (diff)
bin/lts-cve-triage.py: Correct undefined reference to `colored` when stdout is not a TTY
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lts-cve-triage.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py
index f18d345ea2..9cb6306983 100755
--- a/bin/lts-cve-triage.py
+++ b/bin/lts-cve-triage.py
@@ -23,6 +23,13 @@ from tracker_data import TrackerData, RELEASES
from unsupported_packages import UnsupportedPackages, LimitedSupportPackages
+def colored(x, *args, **kwargs):
+ return x
+
+
+colored_on = False
+
+
try:
if sys.stdout.isatty():
from termcolor import colored # noqa
@@ -30,10 +37,7 @@ try:
except ImportError:
print("Note: you can install python3-termcolor for colored output",
file=sys.stderr)
- colored_on = False
- def colored(x, *args, **kwargs):
- return x
TRACKER_URL = 'https://security-tracker.debian.org/tracker/'

© 2014-2024 Faster IT GmbH | imprint | privacy policy