summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sleekxmpp/basexmpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index 8347bfe0..3992a4f9 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -614,7 +614,7 @@ class BaseXMPP(XMLStream):
'in_roster': False}
# Alias to simplify some references.
- connections = self.roster[jid]['presence']
+ connections = self.roster[jid].get('presence', {})
# Determine if the user has just come online.
if not resource in connections: