summaryrefslogtreecommitdiffstats
path: root/pygame/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygame/__init__.py')
-rwxr-xr-xpygame/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pygame/__init__.py b/pygame/__init__.py
index c516008..4bbf096 100755
--- a/pygame/__init__.py
+++ b/pygame/__init__.py
@@ -200,7 +200,10 @@ class ProfileData(ObservedSubject):
return self.profiledb.get_profiles()[self.current_profile_index]['name']
def get_current_profile_avatar(self):
- return self.profiledb.get_profiles()[self.current_profile_index].get('avatar', None)
+ avatar = self.profiledb.get_profiles()[self.current_profile_index].get('avatar', None)
+ if avatar is None:
+ avatar = config.get_data_d() / 'asset/default_avatar.jpeg'
+ return avatar
def get_current_display(self):
return self.profiledb.get_profiles()[self.current_profile_index]['display']