Skip to content

Commit

Permalink
consolidate get_version_info_requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Jun 29, 2023
1 parent 14d5150 commit f12fef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyquil/api/_qvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(

def connect(self) -> None:
try:
version = qvm.api.get_version_info(client=self._client, options=QVMOptions(timeout_seconds=self.timeout))
version = self.get_version_info()
check_qvm_version(version)
except ConnectionError:
raise QVMNotRunning(f"No QVM server running at {self._client.qvm_url}") from ConnectionError
Expand Down Expand Up @@ -166,7 +166,7 @@ def get_version_info(self) -> str:
:return: String with version information
"""
return qvm.api.get_version_info(self._client)
return qvm.api.get_version_info(self._client, options=QVMOptions(timeout_seconds=self.timeout))


def validate_noise_probabilities(noise_parameter: Optional[Tuple[float, float, float]]) -> None:
Expand Down

0 comments on commit f12fef0

Please sign in to comment.