def update_shodan_alert(api_client: shodan.Shodan, alert: {}, ips: []): """Update the monitored IPs of a Shodan alert.""" LOGGER.debug('Updating monitored IPs to: %s', ', '.join(ips)) api_client.edit_alert(alert['id'], ips)