From 24789240ca5395a857c16e602a2d0f5e8cb176d8 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 29 Nov 2017 09:04:10 +0100 Subject: [PATCH] Deal with missing colorama. --- cnn-svrt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cnn-svrt.py b/cnn-svrt.py index 338e145..0c63b85 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -29,7 +29,10 @@ import distutils.util import re import signal -from colorama import Fore, Back, Style +try: + from colorama import Fore, Back, Style +except ImportError: + Fore, Back, Style = '', '', '' # Pytorch -- 2.39.5