diff --git a/src/Dataset.py b/src/Dataset.py index fc3c33476a6967cb44c571c2fb2433efff939ecc..a8b69241fe1cafb279766d4387762966a0499926 100644 --- a/src/Dataset.py +++ b/src/Dataset.py @@ -232,7 +232,7 @@ class Dataset: if type(colname) != str: logging.error("parameter `colname` is not a string") raise ValueError(f"{colname} is not a string") - if type(colname) not in (None, bool): + if type(ascending) not in (None, bool): logging.error("parameter `ascending` is not a bool or None") raise ValueError(f"{colname} is not a bool or None") @@ -270,7 +270,7 @@ class Dataset: if type(colname) != str: logging.error("parameter `colname` is not a string") raise ValueError(f"{colname} is not a string") - if type(colname) not in (None, bool): + if type(ascending) not in (None, bool): logging.error("parameter `ascending` is not a bool or None") raise ValueError(f"{colname} is not a bool or None")