From 95de1aa71b3a5bec02b245c9d5de4dd29b670ef8 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Thu, 20 Jun 2024 13:29:52 -0400 Subject: [PATCH] Fix pylint warning (#1763) --- .pylintrc | 4 ++-- qiskit_ibm_runtime/fake_provider/fake_backend.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index c13d270f9..e72852eb3 100644 --- a/.pylintrc +++ b/.pylintrc @@ -549,5 +549,5 @@ min-public-methods=2 # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception +overgeneral-exceptions=builtins.BaseException, + builtins.Exception diff --git a/qiskit_ibm_runtime/fake_provider/fake_backend.py b/qiskit_ibm_runtime/fake_provider/fake_backend.py index a4d09ab42..69ea4c5e8 100644 --- a/qiskit_ibm_runtime/fake_provider/fake_backend.py +++ b/qiskit_ibm_runtime/fake_provider/fake_backend.py @@ -518,7 +518,7 @@ def refresh(self, service: QiskitRuntimeService) -> None: else: logger.info("There are no available new updates for %s.", self.backend_name) - except Exception as ex: + except Exception as ex: # pylint: disable=broad-except logger.info("The refreshing of %s has failed: %s", self.backend_name, str(ex))