Skip to content

Commit 93c94ec

Browse files
committed
Fixed exception handling.
1 parent 614317f commit 93c94ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c8y_api/model/administration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def select(self,
828828
elif isinstance(groups[0], str):
829829
groups_string = [str(self.__groups.get(name).id) for name in groups]
830830
else:
831-
ValueError("Unable to identify type of given group identifiers.")
831+
raise ValueError("Unable to identify type of given group identifiers.")
832832
groups_string = ','.join(groups_string)
833833
# lazily yield parsed objects page by page
834834
base_query = super()._build_base_query(username=username, groups=groups_string, page_size=page_size)

0 commit comments

Comments
 (0)