From fddf1018852952e01064050da85642c5e32b9d99 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 13 May 2007 21:31:16 -0400 Subject: [PATCH] Quiet error message when unecessary --- services/presence/activity.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/presence/activity.py b/services/presence/activity.py index b93f4cd3..10878a23 100644 --- a/services/presence/activity.py +++ b/services/presence/activity.py @@ -502,11 +502,11 @@ class Activity(ExportedGObject): if _PROP_TYPE in rprops.keys(): type = rprops[_PROP_TYPE] - # Type can never be changed after first set - if self._type: - logging.debug("Activity type changed by network; this is illegal") - else: - if type != self._type: + if type != self._type: + # Type can never be changed after first set + if self._type: + logging.debug("Activity type changed by network; this is illegal") + else: self._type = type changed = True