Skip to content

Commit

Permalink
bump version, update url for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Sep 12, 2024
1 parent 29e32a4 commit 349ef31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions pypet2bids/pypet2bids/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

pet2bids_config = load_vars_from_config()
telemetry_default_url = pet2bids_config.get(
"TELEMETRY_URL", "http://52.87.154.236/telemetry/"
"TELEMETRY_URL", "http://openneuropet.org/pet2bids/"
)
# check environment variables as well as the config file
telemetry_enabled_env = os.getenv("PET2BIDS_TELEMETRY_ENABLED", True)
Expand Down Expand Up @@ -82,8 +82,11 @@ def send_telemetry(json_data: dict, url: str = telemetry_default_url):

json_data["description"] = "pet2bids_python_telemetry"

# Send a POST request to the telemetry server
requests.post(url, json=json_data)
try:
# Send a POST request to the telemetry server
requests.post(url, json=json_data)
except requests.exceptions.RequestException as e:
pass
else:
pass

Expand Down
2 changes: 1 addition & 1 deletion pypet2bids/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pypet2bids"
version = "1.3.13dev"
version = "1.3.13"
description = "A python library for converting PET imaging and blood data to BIDS."
authors = ["anthony galassi <28850131+bendhouseart@users.noreply.github.com>"]
license = "MIT"
Expand Down

0 comments on commit 349ef31

Please sign in to comment.