From 7fe9011e751c6154add4fcf719a9770ec7b9e78e Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Wed, 1 May 2024 10:22:10 -0400 Subject: [PATCH] [BugFix] Account Fetch Error (#523) * fix attempt * happy `pylint` --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index dcc3fad91..06fdb56ee 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 @@ -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")