Skip to content

Commit 985e995

Browse files
committed
removes weird try-except
1 parent b5b0635 commit 985e995

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

roboflow/util/image_utils.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
import requests
77
import yaml
88
from PIL import Image
9+
import pillow_heif
910

10-
try:
11-
import pillow_heif
12-
13-
pillow_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC
14-
pillow_heif.register_avif_opener() # Register for AVIF
15-
except ImportError:
16-
pass
11+
pillow_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC
12+
pillow_heif.register_avif_opener() # Register for AVIF
1713

1814

1915
def check_image_path(image_path):

0 commit comments

Comments
 (0)