Skip to content

Commit

Permalink
Fix #1330 cancellations page Person .one -> .one_or_none
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed May 7, 2024
1 parent e993156 commit ae67112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscribie/blueprints/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ def show_recent_subscription_cancellations():
person = (
Person.query.execution_options(include_archived=True)
.filter_by(uuid=value.data.object.metadata.person_uuid)
.one()
.one_or_none()
)
if person is None:
log.info(
Expand Down

0 comments on commit ae67112

Please sign in to comment.