Skip to content

Commit

Permalink
addressing comment #399 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewcasale committed Mar 28, 2024
1 parent c8288f6 commit 19d7a17
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fastlane_bot/tests/deterministic/dtest_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ def create_new_testnet() -> Tuple[str, int]:
"syncState": False,
}

response = requests.post(url, headers=headers, data=json.dumps(data))
try:
response = requests.post(url, headers=headers, data=json.dumps(data))

uri = f"{response.json()['container']['connectivityConfig']['endpoints'][0]['uri']}"
from_block = int(response.json()["container"]["networkConfig"]["blockNumber"])
uri = f"{response.json()['container']['connectivityConfig']['endpoints'][0]['uri']}"
from_block = int(response.json()["container"]["networkConfig"]["blockNumber"])
except Exception as e:
raise Exception(f"[create_new_testnet] Error creating new testnet: {e}") from e

return uri, from_block

Expand Down

0 comments on commit 19d7a17

Please sign in to comment.