Skip to content

Commit

Permalink
fixes comment + too general of an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
splch committed Apr 29, 2024
1 parent 7f4462c commit 0be8601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pennylane_ionq/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self, timeout_seconds=600, **kwargs):

self.HEADERS = {"User-Agent": self.USER_AGENT}

# Ten minute timeout on requests.
# sets the default timeout for API requests
self.TIMEOUT_SECONDS = timeout_seconds

if self.AUTHENTICATION_TOKEN:
Expand Down Expand Up @@ -338,8 +338,8 @@ def handle_error_response(self, response):
self.errors.append(error)
try:
response.raise_for_status()
except Exception as e:
raise Exception(response.text) from e
except requests.exceptions.HTTPError as e:
raise requests.exceptions.HTTPError(e)

def refresh_data(self, data, params=None):
"""
Expand Down

0 comments on commit 0be8601

Please sign in to comment.