Skip to content

Commit 1e1299d

Browse files
committed
feat: geolocation setter in sendgrid-python for GDPR compliance
1 parent 30b1ca6 commit 1e1299d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sendgrid/base_interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class BaseInterface(object):
5-
def __init__(self, auth, host, region, impersonate_subuser):
5+
def __init__(self, auth, host, impersonate_subuser, region='global'):
66
"""
77
Construct the Twilio SendGrid v3 API object.
88
Note that the underlying client is being set up during initialization,

sendgrid/sendgrid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ def __init__(
5858
self.api_key = api_key or os.environ.get('SENDGRID_API_KEY')
5959
auth = 'Bearer {}'.format(self.api_key)
6060

61-
super(SendGridAPIClient, self).__init__(auth, host, region, impersonate_subuser)
61+
super(SendGridAPIClient, self).__init__(auth, host, impersonate_subuser,region)
6262

0 commit comments

Comments
 (0)