diff options
author | Dan Williams <dcbw@redhat.com> | 2006-10-06 14:46:17 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-10-06 14:46:17 (GMT) |
commit | 022c183016ad554b7037b0e4fee8d55ae840e843 (patch) | |
tree | b0ac93ccf6a7eda322d5addf6ea610658b0fddd0 /services | |
parent | 7f232c30c2b647f43b5ad06d393511d76cfcbdcd (diff) |
Fix wrong conversion of typechecking to isinstance
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/PresenceService.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/presence/PresenceService.py b/services/presence/PresenceService.py index 400d7cf..5fdc48c 100644 --- a/services/presence/PresenceService.py +++ b/services/presence/PresenceService.py @@ -714,7 +714,7 @@ class PresenceService(object): raise ValueError("invalid activity id") owner_nick = self._owner.get_name() real_name = Service.compose_service_name(owner_nick, activity_id) - if address and isinstance(address, unicode): + if address and not isinstance(address, unicode): raise ValueError("address must be a unicode string.") if address == None and stype.endswith('_udp'): # Use random currently unassigned multicast address |