Merge pull request #17899 from mvdbeek/fix_basic_tool_util

[24.0] Fix conditional Image imports
This commit is contained in:
Marius van den Beek
2024-04-04 16:44:30 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ except ImportError:
try:
from PIL import Image
except ImportError:
pass
Image = None # type: ignore[assignment]
from galaxy.tool_util.parser.util import (
DEFAULT_DELTA,
+1 -1
View File
@@ -10,7 +10,7 @@ from typing import (
try:
from PIL import Image
except ImportError:
PIL = None
Image = None # type: ignore[assignment]
log = logging.getLogger(__name__)