def __init__(self):
        try:
            webanalytics_app = settings.WEBANALYTICS_APP

            if webanalytics_app == 'PIWIK':
                self.process_response = self.insert_piwik
            elif webanalytics_app == 'GOOGLE_ANALYTICS':
                self.process_response = self.insert_google_analytics
            else:
                self.process_response = self.return_unaltered

        except __HOLE__:
            self.process_response = self.return_unaltered
dataset/ETHPy150Open rennerocha/dojopuzzles/dojopuzzles/webanalytics/middleware.py/WebAnalyticsMiddleware.__init__