Skip to content

Commit

Permalink
update featurizer
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed May 15, 2024
1 parent cc48dc6 commit 5fcd13e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyTigerGraph/gds/featurizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _get_db_version(self) -> Tuple[str, str, str]:
def _get_algo_dict(self, manifest_file: str) -> dict:
# Get algo dict from manifest
if manifest_file.startswith("http"):
resp = requests.get(manifest_file)
resp = requests.get(manifest_file, allow_redirects=False, timeout=10)
resp.raise_for_status()
algo_dict = resp.json()
else:
Expand Down Expand Up @@ -259,7 +259,7 @@ def _install_query_file(
"""
# Read in the query
if query_path.startswith("http"):
resp = requests.get(query_path)
resp = requests.get(query_path, allow_redirects=False, timeout=10)
resp.raise_for_status()
query = resp.text
else:
Expand Down Expand Up @@ -404,7 +404,7 @@ def _get_query(self, query_name: str) -> str:
raise ValueError("Cannot find {} in the library.".format(query_name))
query_path = self.algo_paths[query_name][-1]
if query_path.startswith("http"):
resp = requests.get(query_path)
resp = requests.get(query_path, allow_redirects=False, timeout=10)
resp.raise_for_status()
query = resp.text
else:
Expand Down

0 comments on commit 5fcd13e

Please sign in to comment.