This commit is contained in:
Yann Leboulanger 2006-01-07 11:14:32 +00:00
parent 24fc492ac3
commit 5f95458393
1 changed files with 3 additions and 1 deletions

View File

@ -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: