Skip to content

Commit

Permalink
dns/ddclient - handle empty response (req.text) in dyndns2, for #3618
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Nov 7, 2023
1 parent f6f72bb commit 85e4a25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def execute(self):
"Account %s set new ip %s [%s]" % (self.description, self.current_address, req.text.strip())
)

self.update_state(address=self.current_address, status=req.text.split()[0])
self.update_state(address=self.current_address, status=req.text.split()[0] if req.text else '')
return True
else:
syslog.syslog(
Expand Down

0 comments on commit 85e4a25

Please sign in to comment.