def get_user_data self key default None try return self user_data key

1
2
3
4
5
def get_user_data(self, key, default = None):
try:
return self.user_data[key]
except:
return default