diff --git a/cachet_url_monitor/configuration.py b/cachet_url_monitor/configuration.py index 8860c9a..626bb8a 100644 --- a/cachet_url_monitor/configuration.py +++ b/cachet_url_monitor/configuration.py @@ -150,6 +150,10 @@ def evaluate(self): self.logger.warning(self.message) self.status = st.COMPONENT_STATUS_PERFORMANCE_ISSUES return + except requests.exceptions.MissingSchema: + self.logger.info('No schema specified - using default http://') + self.endpoint_url = 'http://%s' % self.endpoint_url + self.evaluate() # We initially assume the API is healthy. self.status = st.COMPONENT_STATUS_OPERATIONAL