Skip to content

Commit

Permalink
[syncthing deployment] Fix cases where there is no pending devices in…
Browse files Browse the repository at this point in the history
… syncthing-depl config.xml
  • Loading branch information
spointu committed Sep 15, 2021
1 parent 3e9c7cb commit adca1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulse_xmpp_agent/agentxmpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']=[]
Expand Down

0 comments on commit adca1d2

Please sign in to comment.