From 5f954583934901192d37f9412e195b73aa1e9e65 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 7 Jan 2006 11:14:32 +0000 Subject: [PATCH] fix a TB --- src/common/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 819c1ff53..ec47355ef 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -881,7 +881,9 @@ class Connection: file_props['receiver'] = self.get_full_jid(iq_obj) si = iq_obj.getTag('si') file_tag = si.getTag('file') - range_tag = file_tag.getTag('range') + range_tag = None + if file_tag: + range_tag = file_tag.getTag('range') if range_tag: offset = range_tag.getAttr('offset') if offset: