aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index fc945f34..a18cdb4b 100755
--- a/utils.py
+++ b/utils.py
@@ -110,6 +110,8 @@ def create_histogram(words, file_name="./var/histogram.png"):
"""
Create a histogram.
"""
+ if "pylab" in IMPORT_ERROR:
+ return
length = 10
ind = pylab.arange(length) # abscissa
width = 0.35 # bars width
bgstack15