Skip to content

Commit

Permalink
Merge branch 'main' into 73-backendv2
Browse files Browse the repository at this point in the history
  • Loading branch information
rathishcholarajan authored Jan 22, 2022
2 parents 9dc47f2 + a21ce0e commit bda4cd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qiskit_ibm_runtime/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ def __init__(

def __del__(self) -> None:
"""RetrySession destructor. Closes the session."""
self.close()
try:
self.close()
except Exception: # pylint: disable=broad-except
# ignore errors that may happen during cleanup
pass

def _initialize_retry(
self, retries_total: int, retries_connect: int, backoff_factor: float
Expand Down

0 comments on commit bda4cd3

Please sign in to comment.