diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-07-05 15:11:11 (GMT) |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-07-05 15:11:11 (GMT) |
commit | 257d70a3772be3bcead638572e9a07c8e2d3190c (patch) | |
tree | 3ff53abdd88c286e9c8572f920f9a4b91558a8b0 /src/activity.py | |
parent | 154a6a4144e44353b28c5cdfd868ecbabca99557 (diff) |
buddy, activity: cope with missing interfaces gracefully
Diffstat (limited to 'src/activity.py')
-rw-r--r-- | src/activity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/activity.py b/src/activity.py index 47fcd76..cc3cf7c 100644 --- a/src/activity.py +++ b/src/activity.py @@ -179,6 +179,11 @@ class Activity(ExportedGObject): assert self._room, self._room conn = self._tp.get_connection() + if CONN_INTERFACE_ACTIVITY_PROPERTIES not in conn: + # we should already have warned about this somewhere - + # certainly, don't emit a warning per activity! + return + def got_properties_err(e): _logger.warning('Failed to get initial activity properties ' 'for %s: %s', self._id, e) @@ -756,6 +761,10 @@ class Activity(ExportedGObject): conn = self._tp.get_connection() + if CONN_INTERFACE_ACTIVITY_PROPERTIES not in conn: + # we should already have warned about this somewhere + return + def properties_set(e=None): if e is None: _logger.debug('Successfully set activity properties for %s', |