From 687ff6f118647a4a4e5b9acf1a84fd740c177c11 Mon Sep 17 00:00:00 2001 From: zoltan Date: Wed, 27 Nov 2024 16:19:08 +0000 Subject: [PATCH] update ipfs_gateway_url reqs for discord config to be optional --- skynet/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skynet/cli.py b/skynet/cli.py index 859e2b6..18ec273 100755 --- a/skynet/cli.py +++ b/skynet/cli.py @@ -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: