mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-03-21 17:54:09 -05:00
Added security check for allowed_tokens type.
This commit is contained in:
parent
12a9967dca
commit
67b32f3304
|
|
@ -30,3 +30,7 @@ use_discord = config['webhooks']['discord']['use_discord']
|
|||
moderation_urls = config['webhooks']['discord']['moderation_urls']
|
||||
dev_env = os.environ['DEV']
|
||||
local_ip = config['general']['local_ip']
|
||||
|
||||
if isinstance(allowed_tokens, str):
|
||||
print("The element 'allowed_tokens' should not be a string! Please Update your config!")
|
||||
exit(1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user