def maybe_get_subscriber_emails(stream, user_profile):
 try:
  subscribers = get_subscriber_emails(stream, requesting_user=user_profile)
 except JsonableError:
  subscribers = []
 return subscribers

def maybe_get_subscriber_emails ( stream , user_profile ) : try : subscribers = get_subscriber_emails ( stream , requesting_user = user_profile ) except JsonableError : subscribers = [ ] return subscribers
alternate version of get_subscriber_emails that takes a stream object only .