Skip to content

Commit

Permalink
RuntimeJobTimeoutError should inherit from JobTimeoutError (#1090)
Browse files Browse the repository at this point in the history
* RuntimeJobTimeoutError inherits from JobTimeoutError

* black

---------

Co-authored-by: Kevin Tian <[email protected]>
  • Loading branch information
merav-aharoni and kt474 authored Sep 19, 2023
1 parent 4e0a259 commit 342ba6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit_ibm_runtime/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""Exceptions related to the IBM Runtime service."""

from qiskit.exceptions import QiskitError
from qiskit.providers.exceptions import JobTimeoutError


class IBMError(QiskitError):
Expand Down Expand Up @@ -87,7 +88,7 @@ class RuntimeInvalidStateError(IBMRuntimeError):
pass


class RuntimeJobTimeoutError(IBMRuntimeError):
class RuntimeJobTimeoutError(JobTimeoutError):
"""Error raised when waiting for job times out."""

pass
Expand Down

0 comments on commit 342ba6b

Please sign in to comment.