From adca1d20e8b1993da08c27cce13b887bd4182421 Mon Sep 17 00:00:00 2001 From: SPO Date: Wed, 15 Sep 2021 19:17:10 +0200 Subject: [PATCH] [syncthing deployment] Fix cases where there is no pending devices in syncthing-depl config.xml --- pulse_xmpp_agent/agentxmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulse_xmpp_agent/agentxmpp.py b/pulse_xmpp_agent/agentxmpp.py index b1e79e36d..db0b82ef0 100644 --- a/pulse_xmpp_agent/agentxmpp.py +++ b/pulse_xmpp_agent/agentxmpp.py @@ -741,7 +741,7 @@ def synchro_synthing(self): return if len(config) == 0: return - if len(config['pendingDevices']) > 0: + if 'pendingDevices' in config and len(config['pendingDevices']) > 0: if self.pendingdevice_accept(config): self.syncthingreconfigure = True; config['pendingDevices']=[]