Changeset 343 for trunk


Ignore:
Timestamp:
10/28/07 21:43:59 (12 years ago)
Author:
Nicholas Riley
Message:

RetroStatus?.py: Remove RSS link. Permit Growl notification to fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/RetroStatus/RetroStatus.py

    r209 r343  
    11#!/usr/bin/pythonw
    22
    3 from appscript import app, k
     3from appscript import app, k, CommandError
    44from aemreceive.sfba import *
    55from Foundation import NSLog, NSUserDefaults, NSDate
     
    5757    if DEBUG:
    5858        NSLog('%s: %s' % (title, description))
    59     growl.notify(**params)
     59    try:
     60        growl.notify(**params)
     61    except CommandError:
     62        pass
    6063
    6164def addEvent(title, description, preformatted=False):
     
    6871    events.addItem({(RSS.ns.dc, 'date'): datetime.today().isoformat(),
    6972                    (RSS.ns.rss10, 'title'): title,
    70                     (RSS.ns.rss10, 'link'): datetime.today().isoformat(),
     73    #               (RSS.ns.rss10, 'link'): datetime.today().isoformat(),
    7174                    (RSS.ns.rss10, 'description'): description})
    7275    events.truncateToLength(EVENTS_MAX)
Note: See TracChangeset for help on using the changeset viewer.