# HG changeset patch # User Goffi # Date 1687441602 -7200 # Node ID 4a8b29ab34c0572a32cd166b8bbf8623e4156b37 # Parent 0f6fd28fde0ddfdeac9cadcd093c40492b530ba0 plugin XEP-0363: fix handling of empty `upload_jid` in `_get_slot` diff -r 0f6fd28fde0d -r 4a8b29ab34c0 libervia/backend/plugins/plugin_xep_0363.py --- a/libervia/backend/plugins/plugin_xep_0363.py Thu Jun 22 15:45:20 2023 +0200 +++ b/libervia/backend/plugins/plugin_xep_0363.py Thu Jun 22 15:46:42 2023 +0200 @@ -300,7 +300,8 @@ client = self.host.get_client(profile_key) filename = filename.replace("/", "_") d = defer.ensureDeferred(self.get_slot( - client, filename, size, content_type or None, jid.JID(upload_jid) or None + client, filename, size, content_type or None, + jid.JID(upload_jid) if upload_jid else None )) d.addCallback(lambda slot: (slot.get, slot.put, slot.headers)) return d