Skip to content
Snippets Groups Projects
Commit 75f32f53 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix initializing a variable

parent 1c6214fb
No related branches found
No related tags found
No related merge requests found
......@@ -1360,13 +1360,13 @@ def get_subscription_request_msg(account=None):
def replace_dataform_media(form, stanza):
import xmpp
found = False
for field in form.getTags('field'):
for media in field.getTags('media'):
for uri in media.getTags('uri'):
uri_data = uri.getData()
if uri_data.startswith('cid:'):
uri_data = uri_data[4:]
found = False
for data in stanza.getTags('data', namespace=xmpp.NS_BOB):
if data.getAttr('cid') == uri_data:
uri.setData(data.getData())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment