Converters: always set version to something.

Otherwise, it's common to compare "None >= (6,2,6)", which makes no sense. Set it to (0,0,0) so that any comparison fails (without an error message).
This commit is contained in:
Thibaut Cuvelier 2020-09-16 04:12:26 +02:00
parent e4065cc1b1
commit 1991d0ed24

View File

@ -53,6 +53,8 @@ else:
gm = True
# we need version to be a valid integer 3-tuple
version = (1,0,0)
else:
version = (0,0,0)
# IM >= 5.5.8 separates options for source and target files
# See http://www.imagemagick.org/Usage/basics/#why