update ipfs_gateway_url reqs for discord config to be optional

discord-upate
zoltan 2024-11-27 16:19:08 +00:00
parent 361f717867
commit 687ff6f118
1 changed files with 6 additions and 1 deletions

View File

@ -453,7 +453,12 @@ def discord(
node_url = load_key(config, 'skynet.discord.node_url')
hyperion_url = load_key(config, 'skynet.discord.hyperion_url')
ipfs_gateway_url = load_key(config, 'skynet.discord.ipfs_gateway_url')
try:
ipfs_gateway_url = load_key(config, 'skynet.discord.ipfs_gateway_url')
except ConfigParsingError:
ipfs_gateway_url = None
ipfs_url = load_key(config, 'skynet.discord.ipfs_url')
try: