Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
e980c2c70f
commit
b98291d5b8
1 changed files with 3 additions and 0 deletions
|
@ -33,7 +33,10 @@ def updateklines():
|
||||||
specifiedip = i.split(" ")[0]
|
specifiedip = i.split(" ")[0]
|
||||||
specifiedreason = " ".join(i.split(" ")[1:])
|
specifiedreason = " ".join(i.split(" ")[1:])
|
||||||
banlist[specifiedip] = specifiedreason
|
banlist[specifiedip] = specifiedreason
|
||||||
|
print(f"Updated ban list! {banlist}")
|
||||||
except:
|
except:
|
||||||
|
print("Failed to update banlist...")
|
||||||
|
print(traceback.format_exc())
|
||||||
banlist = {}
|
banlist = {}
|
||||||
with open(sys.argv[1], 'r') as file:
|
with open(sys.argv[1], 'r') as file:
|
||||||
data = yaml.safe_load(file)
|
data = yaml.safe_load(file)
|
||||||
|
|
Loading…
Reference in a new issue