From 7a194023a119ca044eb2487c489aa8fe42a8e200 Mon Sep 17 00:00:00 2001 From: saipraneeth <2506664+msaipraneeth@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:48:13 +0100 Subject: [PATCH] throw error if inputs are passed --- cmem_plugin_ulid/transform/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmem_plugin_ulid/transform/__init__.py b/cmem_plugin_ulid/transform/__init__.py index 755dfa4..f56b89f 100644 --- a/cmem_plugin_ulid/transform/__init__.py +++ b/cmem_plugin_ulid/transform/__init__.py @@ -41,6 +41,8 @@ def __init__(self, number_of_values=1): self.number_of_values = number_of_values def transform(self, inputs: Sequence[Sequence[str]]) -> Sequence[str]: + if inputs: + raise ValueError("Plugin does not support processing input entities.") result = [] for _ in range(self.number_of_values): result += [f"{ULID()}"]