Add try to make gateway conf optional on telegram client

pull/26/head
Guillermo Rodriguez 2023-10-05 16:07:56 -03:00
parent de8c7595db
commit a9b05b7ee7
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 6 additions and 1 deletions

View File

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