Handle TypeError exception when no ImageMagick install is present
Fixes an error introduced in where a TypeError exception was
raised when calling `_check_method()` with no ImageMagick installation
present.
@@ -227,9 +227,12 @@ class ArtResizer(six.with_metaclass(Shareable, object)):
@staticmethod
def _check_method():
"""Return a tuple indicating an available method and its version."""
+ try:
version, isLegacy = get_im_version()
if version:
return IMAGEMAGICK, version, isLegacy
+ except TypeError:
+ pass
version = get_pil_version()
if version:
