Merge pull request #3244 from bookwyrm-social/dependabot/pip/pillow-10.2.0

Bump pillow from 10.0.1 to 10.2.0
This commit is contained in:
Mouse Reeve 2024-03-19 15:10:30 -07:00 committed by GitHub
commit d08147c6d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,5 @@
""" Generate social media preview images for twitter/mastodon/etc """ """ Generate social media preview images for twitter/mastodon/etc """
import math import math
import os import os
import textwrap import textwrap
@ -42,8 +43,8 @@ def get_imagefont(name, size):
return ImageFont.truetype(path, size) return ImageFont.truetype(path, size)
except KeyError: except KeyError:
logger.error("Font %s not found in config", name) logger.error("Font %s not found in config", name)
except OSError: except OSError as err:
logger.error("Could not load font %s from file", name) logger.error("Could not load font %s from file: %s", name, err)
return ImageFont.load_default() return ImageFont.load_default()
@ -59,7 +60,7 @@ def get_font(weight, size=28):
font.set_variation_by_name("Bold") font.set_variation_by_name("Bold")
if weight == "regular": if weight == "regular":
font.set_variation_by_name("Regular") font.set_variation_by_name("Regular")
except AttributeError: except OSError:
pass pass
return font return font

View file

@ -25,7 +25,7 @@ opentelemetry-instrumentation-celery==0.37b0
opentelemetry-instrumentation-django==0.37b0 opentelemetry-instrumentation-django==0.37b0
opentelemetry-instrumentation-psycopg2==0.37b0 opentelemetry-instrumentation-psycopg2==0.37b0
opentelemetry-sdk==1.16.0 opentelemetry-sdk==1.16.0
Pillow==10.0.1 Pillow==10.2.0
protobuf==3.20.* protobuf==3.20.*
psycopg2==2.9.5 psycopg2==2.9.5
pycryptodome==3.19.1 pycryptodome==3.19.1
@ -53,7 +53,7 @@ pytidylib==0.3.2
types-bleach==6.0.0.4 types-bleach==6.0.0.4
types-dataclasses==0.6.6 types-dataclasses==0.6.6
types-Markdown==3.4.2.10 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-psycopg2==2.9.21.11
types-python-dateutil==2.8.19.14 types-python-dateutil==2.8.19.14
types-requests==2.31.0.2 types-requests==2.31.0.2