Skip to content

Commit

Permalink
raise exception if instance_url is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 committed Nov 29, 2023
1 parent 9231244 commit bfd095f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target_salesforce_v3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ def url(self, endpoint=None):
endpoint = self.endpoint
instance_url = self.config.get("instance_url")
if not instance_url:
self.authenticator
instance_url = self.authenticator.instance_url
raise Exception("instance_url not defined in config")
return f"{instance_url}/services/data/{self.api_version}/{endpoint}"

def validate_input(self, record: dict):
Expand Down

0 comments on commit bfd095f

Please sign in to comment.