INNER CODE UNIT · Python

make_call

GoogleCloudPlatform/bank-of-anthos · src/frontend/api_call.py:40

    def make_call(self):
        """Making an API call"""
        response = None

        try:
            response = get(url=self.api_request.url,
                           headers=self.api_request.headers,
                           timeout=self.api_request.timeout)
        except (RequestException, ValueError) as err:
            self.logger.error('Error getting %s: %s',
                              self.display_name, str(err))

        return response

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…