From 44d532808d3d4b0604eeac9615d2a3f6f45066d9 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Mon, 3 Jun 2019 09:47:36 +0200 Subject: [PATCH] tqdm now optional --- wani.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wani.py b/wani.py index afa7f93..e7d9bf3 100644 --- a/wani.py +++ b/wani.py @@ -12,7 +12,11 @@ import concurrent.futures import tempfile from msd_translate import MSD_TRANSLATE -from tqdm import tqdm + +try: + from tqdm import tqdm +except ImportError: + tqdm = lambda x: x MAX_NUM_COMPONENTS = 5