This commit is contained in:
2026-03-12 15:17:39 +01:00
parent f750589f32
commit 4602f4008c
+2 -2
View File
@@ -81,12 +81,12 @@ def ban_ip(args):
update_response = data[2].put(
update_url, json=payload_update, headers=headers, verify=False
)
print("Update response status:", update_response.text)
return ("Update response status:", update_response.text)
def run(data):
try:
ban_ip(data)
return ban_ip(data)
except:
return f"{data.action} requested {data.ip}"