Browse Source

Returning a better exception type

pull/1/head
sirgje 3 years ago
parent
commit
5dbf9f433b
No known key found for this signature in database GPG Key ID: 9F326B1EC4A97073
  1. 2
      cogs/killstream.py

2
cogs/killstream.py

@ -229,7 +229,7 @@ class Killstream(commands.Cog):
async def process_entity_criteria(self, ctx, entity_type, entity_name, value):
if entity_type not in ['character', 'corporation', 'alliance']:
raise ValueError('Invalid entity!')
raise commands.BadArgument('Invalid entity!')
try:
entity_lookup = await self.bot.esi.search(entity_type, entity_name)

Loading…
Cancel
Save