Skip to content
Snippets Groups Projects
Commit 54755492 authored by Sortofamudkip's avatar Sortofamudkip
Browse files

fixed parameter checking

parent e2f46cce
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment