def add_note_from_word(self, word, output_file=None):
    is_default_model = True
    try:
        note_fields = get_note_default(word)
        if (note_fields is None):
            print(f'"{word}" not found in mijnwoordenbook')
            if output_file:
                with open(output_file, 'a') as f:
                    f.write('\n')
                    f.write(word)
            return
    except:
        is_default_model = False
        note_fields = get_note_simple(word)
    try:
        if is_default_model:
            self.add_note_default(note_fields)
        else:
            self.add_note_simple(note_fields)
    except:
        print(f'"{word}" already exists in deck {self.deck_name}')
def add_note_from_word(self, word, output_file=None):
    is_default_model = True
    try:
        note_fields = get_note_default(word)
        if (note_fields is None):
            print(f'"{word}" not found in mijnwoordenbook')
            if output_file:
                with open(output_file, 'a') as f:
                    f.write('\n')
                    f.write(word)
            return
    except:
        is_default_model = False
        note_fields = get_note_simple(word)
    try:
        if is_default_model:
            self.add_note_default(note_fields)
        else:
            self.add_note_simple(note_fields)
    except:
        print(f'"{word}" already exists in deck {self.deck_name}')