1
0
mirror of synced 2025-12-22 11:31:02 -05:00
Files
airbyte/airbyte-integrations/connectors/source-kyve/source_kyve/utils.py
Christopher Brumm 77f754a4f5 Source KYVE: KYVE Mainnet support and generic normalisation (#32492)
Co-authored-by: cgkournelos-rf <cgkournelos@rocketfueldev.com>
Co-authored-by: mbreithecker <m@breithecker.de>
2023-11-28 23:04:48 -03:00

14 lines
321 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import requests
def query_endpoint(endpoint):
try:
response = requests.get("https://" + endpoint)
return response
except requests.exceptions.RequestException as e:
print(f"Failed to query {endpoint}: {e}")
return None