Skip to content

Commit

Permalink
chore: try to fix a flappy test (#17540)
Browse files Browse the repository at this point in the history
* chore: try to fix a flappy test

* a missing snapshot somehow
  • Loading branch information
pauldambra authored and daibhin committed Sep 21, 2023
1 parent 5201c2d commit df61a80
Show file tree
Hide file tree
Showing 3 changed files with 4,076 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posthog/api/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_person_name(team: Team, person: Person) -> str:

def get_person_display_name(person: Person, team: Team) -> str | None:
for property in team.person_display_name_properties or PERSON_DEFAULT_DISPLAY_NAME_PROPERTIES:
if person.properties.get(property):
if person.properties and person.properties.get(property):
return person.properties.get(property)
return None

Expand Down
Loading

0 comments on commit df61a80

Please sign in to comment.