diff --git a/glotaran/deprecation/deprecation_utils.py b/glotaran/deprecation/deprecation_utils.py index d9f43f7f7..2c0d49deb 100644 --- a/glotaran/deprecation/deprecation_utils.py +++ b/glotaran/deprecation/deprecation_utils.py @@ -656,7 +656,7 @@ def __getattr__(attribute_name: str): .. # noqa: DAR402 """ - if module_load_overwrite == "": + if not module_load_overwrite: module_name = ".".join(new_qual_name.split(".")[:-1]) attribute_name = new_qual_name.split(".")[-1] check_qual_names = (False, True)