Making WordPress.org

Changeset 189


Ignore:
Timestamp:
12/29/2013 11:49:28 PM (11 years ago)
Author:
nacin
Message:

Trac: Better exception handling for [188]. see #21.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r188 r189  
    1919
    2020    # Fix http://meta.trac.wordpress.org/ticket/21
    21     import urllib
    22     for link in chrome['links']['alternate']:
    23         if link['class'] == 'rss':
    24             new_link = link['href'].split('/login?referer=')
    25             link['href'] = urllib.unquote(new_link[1])
     21    try:
     22        for link in chrome['links']['alternate']:
     23            if link['class'] == 'rss':
     24                new_link = link['href'].split('/login?referer=')
     25                import urllib
     26                link['href'] = urllib.unquote(new_link[1])
     27    except IndexError:
     28        pass
    2629?>
    2730
Note: See TracChangeset for help on using the changeset viewer.