summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramks1 <68153785+amks1@users.noreply.github.com>2023-02-26 18:03:30 +0400
committerGitHub <noreply@github.com>2023-02-26 21:03:30 +0700
commit08d8f7c30cc705310d0004ca02a7778ad1ca466a (patch)
tree29e1b6a32d26daea2157b29a6a8c7eec17c90e3c
parent7bbef7e05aa35fc77837a315ba7364e6777aff9f (diff)
downloadrq-08d8f7c30cc705310d0004ca02a7778ad1ca466a.tar.gz
removed import error warning and changed function doc (#1839)
-rw-r--r--rq/utils.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/rq/utils.py b/rq/utils.py
index 1c3fa01..a304fd3 100644
--- a/rq/utils.py
+++ b/rq/utils.py
@@ -182,10 +182,7 @@ def import_attribute(name: str) -> Callable[..., Any]:
E.g.: package_a.package_b.module_a.ClassA.my_static_method
Thus we remove the bits from the end of the name until we can import it
- Sometimes the failure during importing is due to a genuine coding error in the imported module
- In this case, the exception is logged as a warning for ease of debugging.
- The above logic will apply anyways regardless of the cause of the import error.
-
+
Args:
name (str): The name (reference) to the path.
@@ -204,7 +201,6 @@ def import_attribute(name: str) -> Callable[..., Any]:
module = importlib.import_module(module_name)
break
except ImportError:
- logger.warning("Import error for '%s'" % module_name, exc_info=True)
attribute_bits.insert(0, module_name_bits.pop())
if module is None: