From bc2deca369f89e43905aa147a4eee48ff522b028 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 28 Aug 2019 14:40:08 -0500 Subject: [PATCH] Handle boolean value for API.verify_credentials include_email parameter Resolves #890 --- tweepy/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tweepy/api.py b/tweepy/api.py index 3e6897b..56d66cf 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -648,6 +648,8 @@ class API(object): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials :allowed_param: 'include_entities', 'skip_status', 'include_email' """ + if "include_email" in kwargs: + kwargs["include_email"] = str(kwargs["include_email"]).lower() try: return bind_api( api=self, -- 2.25.1