diff --git a/data/convert-icon b/data/convert-icon index ae1b068318..66ca7da527 100755 --- a/data/convert-icon +++ b/data/convert-icon @@ -23,8 +23,13 @@ import re try: import Image except ImportError: - print("WARNING: Could not update %s. Please install the Python Imaging library." % sys.argv[2]) - sys.exit(0) + try: + from PIL import Image + except ImportError: + print("WARNING: Could not update %s. " + "Please install the Python Imaging library or Pillow." + % sys.argv[2]) + sys.exit(0) def convert_image(filename, output_filename):