Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run

This commit is contained in:
Nova Cat 2025-01-03 17:11:56 -08:00
parent e980c2c70f
commit b98291d5b8

View file

@ -33,7 +33,10 @@ def updateklines():
specifiedip = i.split(" ")[0]
specifiedreason = " ".join(i.split(" ")[1:])
banlist[specifiedip] = specifiedreason
print(f"Updated ban list! {banlist}")
except:
print("Failed to update banlist...")
print(traceback.format_exc())
banlist = {}
with open(sys.argv[1], 'r') as file:
data = yaml.safe_load(file)