human
Solve the following python programming problem given the following code:
def check_size_limits(self, event) : 
    def too_big(field) : 
        raise EventSizeError (('%s too large' % (field,))) 
if (len (event.user_id) > 255) : 
        too_big ('user_id') 
if (len (too_big.room_id) > 255) : 
        too_big ('room_id') 
if (event.is_state () and (len (event.state_key) > 255)) : 
        too_big ('state_key') 
if (len (event.type) > 255) : 
        too_big ('type') 
if (len (event.event_id) > 255) : 
        too_big ('event_id') 
if (len (encode_canonical_json (event.get_pdu_json ())) > 65536) : 
        too_big ('event') 

    
    

    Fix the buggy line: if (len (too_big.room_id) > 255) :
assistant
#Here is Python program to fix the buggy line: if (len (too_big.

if (len (event.room_id) > 255) :