<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_notification_options(user):
 """Get a user's notification options to pass as an initial value to a NotificationOptionsForm."""


    notification_options = {}
    notification_options["receive_news_emails"] = user.receive_news_emails
    notification_options["receive_eighth_emails"] = user.receive_eighth_emails
    try:
        notification_options["primary_email"] = user.primary_email
    except Email.DoesNotExist:
        user.primary_email = None
        user.save()
        notification_options["primary_email"] = None

    return notification_options