diff --git a/sopel/modules/invite.py b/sopel/modules/invite.py index 885f547999..4778a459b7 100644 --- a/sopel/modules/invite.py +++ b/sopel/modules/invite.py @@ -77,4 +77,7 @@ def invite(bot, trigger): .format(bot.config.core.help_prefix)) channel = trigger.sender - invite_handler(bot, trigger.nick, user, channel) + try: + invite_handler(bot, trigger.nick, user, channel) + except ValueError as err: + bot.reply('%s' % err)