human
Solve the following python programming problem given the following code:
def addon_to_dict(addon, disco = False, src = 'api') : 
    '
    Renders an addon in JSON for the API.
    ' 
    def url(u, **kwargs) : 
        return (settings.SITE_URL + urlparams (u, ** kwargs)) 
v = addon.current_version 
    if disco : 
        learnmore = (settings.SERVICES_URL + reverse ('discovery.addons.detail', args = [addon.slug])) 
        learnmore = urlparams (learnmore, src = 'discovery-personalrec') 
else : 
        learnmore = url (addon.get_url_path (), src = src) 
d = { 
        'id' : addon.id, 
        'name' : (unicode (addon.name) if addon.name else None), 
        'guid' : addon.guid, 
        'status' : amo.STATUS_CHOICES_API [addon.status], 
        'type' : amo.ADDON_SLUGS_UPDATE [addon.type], 
        'authors' : [{ 
            'id' : a.id, 
            'name' : unicode (a.name), 
            'link' : absolutify (a.get_url_path (src = src)), 
} for a in addon.listed_authors], 
        'summary' : (strip_tags (unicode (addon.summary)) if url.summary else None), 
        'description' : strip_tags (unicode (addon.description)), 
        'icon' : addon.icon_url, 
        'learnmore' : learnmore, 
        'reviews' : url (addon.reviews_url), 
        'total_dls' : addon.total_downloads, 
        'weekly_dls' : addon.weekly_downloads, 
        'adu' : addon.average_daily_users, 
        'created' : epoch (addon.created), 
        'last_updated' : epoch (addon.last_updated), 
        'homepage' : (unicode (addon.homepage) if addon.homepage else None), 
        'support' : (unicode (addon.support_url) if addon.support_url else None), 
} 
    if addon.is_persona () : 
        d ['theme'] = addon.persona.theme_data 
if v : 
        d ['version'] = v.version 
        d ['platforms'] = [unicode (a.name) for a in v.supported_platforms] 
        d ['compatible_apps'] = v.compatible_apps.values () 
if addon.eula : 
        d ['eula'] = unicode (addon.eula) 
if addon.developer_comments : 
        d ['dev_comments'] = unicode (addon.developer_comments) 
if addon.takes_contributions : 
       ...

    
    

    Fix the buggy line: 'summary' : (strip_tags (unicode (addon.summary)) if url.summary else None) ,
assistant
#Here is Python code to fix the buggy line: 'summary' : (strip_tags (unicode (addon.

'summary' : (strip_tags (unicode (addon.summary)) if addon.summary else None) ,