diff options
author | 2019-03-05 00:03:19 -0700 | |
---|---|---|
committer | 2019-03-05 00:03:19 -0700 | |
commit | 765a572698dc8172cf8db31fa684e702d6ad631e (patch) | |
tree | 4c012583d2b0993fe38a4ae3bdaa9fbdf0f75c72 /bot/utils | |
parent | Make this pig fly (diff) |
Formating and linter fixes
Diffstat (limited to 'bot/utils')
-rw-r--r-- | bot/utils/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py index 4cd35d35..ef18a1b9 100644 --- a/bot/utils/__init__.py +++ b/bot/utils/__init__.py @@ -25,7 +25,6 @@ async def disambiguate( :param embed: The embed that the paginator will use. :return: Users choice for correct entry. """ - if len(entries) == 0: raise BadArgument('No matches found.') @@ -77,4 +76,4 @@ async def disambiguate( try: return entries[index - 1] except IndexError: - raise BadArgument('Invalid choice.')
\ No newline at end of file + raise BadArgument('Invalid choice.') |