prevent traceback

This commit is contained in:
Yann Leboulanger 2009-10-06 21:27:40 +02:00
parent 0d37f4f64b
commit 3a13f91162
1 changed files with 2 additions and 0 deletions

View File

@ -1604,6 +1604,8 @@ class Connection(ConnectionHandlers):
self.connection.send(iq)
def _request_bookmarks_xml(self):
if not self.connection:
return
iq = common.xmpp.Iq(typ='get')
iq2 = iq.addChild(name='query', namespace=common.xmpp.NS_PRIVATE)
iq2.addChild(name='storage', namespace='storage:bookmarks')