Skip to content

Commit

Permalink
[BugFix] Account Fetch Error (#523)
Browse files Browse the repository at this point in the history
* fix attempt

* happy `pylint`
  • Loading branch information
obliviateandsurrender authored May 1, 2024
1 parent d826caa commit 7fe9011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import pennylane as qml
from semantic_version import Version
from qiskit_ibm_provider import IBMProvider, IBMProviderValueError
from qiskit_ibm_provider import IBMProvider
from pennylane_qiskit import AerDevice, BasicAerDevice, BasicSimulatorDevice

# pylint: disable=protected-access, unused-argument, redefined-outer-name
Expand Down Expand Up @@ -63,7 +63,7 @@ def skip_if_no_account():
t = os.getenv("IBMQX_TOKEN", None)
try:
IBMProvider(token=t)
except IBMProviderValueError:
except: # pylint: disable=broad-except, bare-except
missing = "token" if t else "account"
pytest.skip(f"Skipping test, no IBMQ {missing} available")

Expand Down

0 comments on commit 7fe9011

Please sign in to comment.