@gov (Gregory Voronin) posted a new topic, subject "Possible typo in Padatious code in documentation?". It read:

   In the Tomato Skill code for Padatious:
    
    there is this line to get a wild card from the utterance in the passed message:
    [code] 
        def handle_do_you_like(self, message):
                tomato_type = message.get('type')
        
    [/code]
    
    However when I execute the following:
    [code] 
        `self.file_name = message.get('filename')+ ".txt"`
        
    [/code]
    
    I get an error, and the mycroft-skill.log file states:
    
    `AttributeError: 'Message' object has no attribute 'get'`
    
    Changing the code to:
    
    `self.file_name = message.data.get('filename')+ ".txt"`
    
    corrects the problem.
    
    In the documentation, this **_message.data.get()_** format is mentioned below the Tomato skill example.
    
    Not sure if this is a type or is the **_message.get_** is meant to be used differently, but thought I would point it out.

So @KathyReid (Kathy Reid) replied

    Great pickup. I'll get @Wolfgange to confirm for me, then update the doco.

@Wolfgange (Matthew Scholefield) replied

    Sorry for the delay, @gov thanks for pointing that out. You're absolutely correct. It should be `message.data.get(`. Thanks!  
    @KathyReid If the docs haven't been updated, that change looks good to me.

@KathyReid (Kathy Reid) replied

    Wolfgange:
    
    > message.data.get(
    
    Confirming the doco is now updated;  
    Mycroft
    
    ### Padatious - Mycroft
    
    Learn more about the Padatious Intent Parser, and understand how it parses text from speech to text (STT) to identify the User's Intent.
    
    Kind regards,  
    Kathy


{'source': 'discourse', 'url': 'https://community.mycroft.ai/t/possible-typo-in-padatious-code-in-documentation/2635', 'title': 'Possible typo in Padatious code in documentation?', 'views': 638, 'has_accepted_answer': False, 'word_count': 190, 'like_count': 3, 'reply_count': 1, 'participant_count': 3, 'posts': 4, 'tags': '', 'author': '@gov (Gregory Voronin)', 'participants': '@gov (Gregory Voronin), @KathyReid (Kathy Reid), @Wolfgange (Matthew Scholefield)', 'image_url': [None], 'created_at': '2017-12-30T03:30:32.565Z', 'last_posted_at': '2018-01-05T10:34:47.463Z'}