human
Solve the following python programming problem given the following code:
def build_retriever(self, mbid, rrec) : 
    def got_msgC(msgC) : 
        self.msgC_received (mbid, msgC) 
retrieval_type = got_msgC ['type'] 
    if (retrieval_type == 'http') : 
        return retrieval.HTTPRetriever (rrec, got_msgC) 
else : 
        if (retrieval_type == 'local') : 
            return retrieval.LocalRetriever (rrec, got_msgC, self.mailbox_server) 
else : 
            raise CommandError (("unrecognized mailbox-retrieval protocol '%s'" % retrieval_type)) 

    
    

    Fix the buggy line: retrieval_type = got_msgC ['type']
assistant
#Here is Python code to fix the buggy line: retrieval_type = got_msgC ['type']
.

retrieval_type = rrec ['type']