Remove unused variable in for loop

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-12-16 01:05:58 +01:00
parent 9e67d7d887
commit 28fe0d04c7

View file

@ -116,7 +116,7 @@ def _generate_encrypted_payload(encrypted) -> Encrypted:
if 'payload' in encrypted: if 'payload' in encrypted:
tag['payload']['value'] = b64enc(encrypted['payload']) tag['payload']['value'] = b64enc(encrypted['payload'])
for bare_jid, devices in encrypted['keys'].items(): for devices in encrypted['keys'].values():
for rid, device in devices.items(): for rid, device in devices.items():
key = Key() key = Key()
key['value'] = b64enc(device['data']) key['value'] = b64enc(device['data'])