This commit is contained in:
Karol Wypchlo 2021-03-01 18:42:33 +01:00
parent 1d9215fdd1
commit d9ed1decf6
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ async def block_skylinks_from_airtable():
response = requests.post('http://' + ipaddress + ':9980/skynet/blocklist', auth = auth, headers = headers, data = data) response = requests.post('http://' + ipaddress + ':9980/skynet/blocklist', auth = auth, headers = headers, data = data)
if response.status_code == 204: if response.status_code == 204:
print("Skylinks successfully added to siad blocklist") print("Siad blocklist succesfully updated with provided skylink")
else: else:
message = "Siad blocklist endpoint responded with code " + str(response.status_code) + ": " + (response.text or "empty response") message = "Siad blocklist endpoint responded with code " + str(response.status_code) + ": " + (response.text or "empty response")
return print(message) or await send_msg(client, message, force_notify=True) return print(message) or await send_msg(client, message, force_notify=True)