diff --git a/src/PIL/ImageFilter.py b/src/PIL/ImageFilter.py index 021b40c0ef4..035b83c4d77 100644 --- a/src/PIL/ImageFilter.py +++ b/src/PIL/ImageFilter.py @@ -396,7 +396,7 @@ def __init__(self, size, table, channels=3, target_mode=None, **kwargs): if hasattr(table, "shape"): try: import numpy - except ImportError: # pragma: no cover + except ImportError: pass if numpy and isinstance(table, numpy.ndarray):