Fex checking webhook_id in options

This commit is contained in:
PCoder 2019-04-14 02:03:06 +02:00
parent dc4ad93de8
commit 5cb1c136cf

View file

@ -38,7 +38,7 @@ class Command(BaseCommand):
)
elif options['delete']:
logger.debug("Deleting webhook")
if ['webhook_id'] in options:
if 'webhook_id' in options:
stripe.Webhook.delete(options['webhook_id'])
msg = "Deleted " + options['webhook_id']
logger.debug(msg)