Skip to content

Commit e8015f7

Browse files
author
nazarfil
committed
gathered trty catch
1 parent 980c38c commit e8015f7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

openhexa/cli/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,10 @@ def _query_graphql(query: str, variables=None, token=None):
187187
},
188188
json={"query": query, "variables": variables},
189189
)
190+
response.raise_for_status()
190191
except requests.exceptions.SSLError as e:
191192
handle_ssl_error(e)
192-
raise GraphQLError(str(e))
193-
try:
194-
response.raise_for_status()
193+
raise
195194
except requests.exceptions.HTTPError as e:
196195
raise GraphQLError(str(e))
197196

0 commit comments

Comments
 (0)