Skip to content

Commit eea0a0d

Browse files
committed
fix: issue when using base Person (has no type)
1 parent aa495dd commit eea0a0d

File tree

1 file changed

+1
-1
lines changed
  • basxconnect/mailer_integration/abstract

1 file changed

+1
-1
lines changed

basxconnect/mailer_integration/abstract/mailer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def from_subscription(preferences: Subscription):
3939
],
4040
status=preferences.status,
4141
language=preferences.language,
42-
persontype=person.type.slug,
42+
persontype=person.type.slug if hasattr(person, "type") else "",
4343
)
4444

4545

0 commit comments

Comments
 (0)