diff --git a/pyproject.toml b/pyproject.toml index db682fb..fc94c5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "slackblocks" -version = "1.0.11" +version = "1.0.12" description = "Python wrapper for the Slack Blocks API" authors = [ "Nicholas Lambourne ", diff --git a/slackblocks/blocks.py b/slackblocks/blocks.py index c60ab6f..b653ba9 100644 --- a/slackblocks/blocks.py +++ b/slackblocks/blocks.py @@ -32,6 +32,7 @@ UserSelectMenu, NumberInput, EmailInput, + URLInput, ) from slackblocks.errors import InvalidUsageError from slackblocks.objects import ( @@ -69,6 +70,7 @@ UserMultiSelectMenu, RichTextInput, EmailInput, + URLInput, ) @@ -335,7 +337,9 @@ def __init__( label, force_plaintext=True, max_length=2000, allow_none=False ) if not isinstance(element, ALLOWED_INPUT_ELEMENTS): - raise InvalidUsageError("") + raise InvalidUsageError( + f"InputBlocks can only hold elements of type: {ALLOWED_INPUT_ELEMENTS}" + ) self.element = element self.dispatch_action = dispatch_action self.hint = Text.to_text(