Skip to content

Commit

Permalink
Merge pull request #3244 from bookwyrm-social/dependabot/pip/pillow-1…
Browse files Browse the repository at this point in the history
…0.2.0

Bump pillow from 10.0.1 to 10.2.0
  • Loading branch information
mouse-reeve authored Mar 19, 2024
2 parents d304ceb + f423834 commit d08147c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions bookwyrm/preview_images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Generate social media preview images for twitter/mastodon/etc """

import math
import os
import textwrap
Expand Down Expand Up @@ -42,8 +43,8 @@ def get_imagefont(name, size):
return ImageFont.truetype(path, size)
except KeyError:
logger.error("Font %s not found in config", name)
except OSError:
logger.error("Could not load font %s from file", name)
except OSError as err:
logger.error("Could not load font %s from file: %s", name, err)

return ImageFont.load_default()

Expand All @@ -59,7 +60,7 @@ def get_font(weight, size=28):
font.set_variation_by_name("Bold")
if weight == "regular":
font.set_variation_by_name("Regular")
except AttributeError:
except OSError:
pass

return font
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ opentelemetry-instrumentation-celery==0.37b0
opentelemetry-instrumentation-django==0.37b0
opentelemetry-instrumentation-psycopg2==0.37b0
opentelemetry-sdk==1.16.0
Pillow==10.0.1
Pillow==10.2.0
protobuf==3.20.*
psycopg2==2.9.5
pycryptodome==3.19.1
Expand Down Expand Up @@ -53,7 +53,7 @@ pytidylib==0.3.2
types-bleach==6.0.0.4
types-dataclasses==0.6.6
types-Markdown==3.4.2.10
types-Pillow==10.0.0.3
types-Pillow==10.2.0.20240311
types-psycopg2==2.9.21.11
types-python-dateutil==2.8.19.14
types-requests==2.31.0.2

0 comments on commit d08147c

Please sign in to comment.