Skip to content

Commit

Permalink
move PIL import to try except (they are both in the extra group)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo-cunha committed Nov 27, 2022
1 parent ed744b1 commit 1ae0a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databooks/data_models/_rich.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
from io import BytesIO
from typing import Any, List, Optional, Tuple

from PIL import Image
from rich import box
from rich.table import Table

try:
from PIL import Image
from rich_pixels import Pixels

_IMG_INSTALLED = True
Expand Down

0 comments on commit 1ae0a1a

Please sign in to comment.