DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 2 forks source link

Check for 200 Response Code For All Metrics #174

Closed IsaacMilarky closed 1 month ago

IsaacMilarky commented 1 month ago

Raise a connection error if status code 200 is not returned

Problem

Right now we only check status codes for ResourceMetric instead of for all metrics.

Solution

Raise a connection error in the BaseMetric class's hit_metric method to be handled by the apply_metric_and_store_data method and print the error to stdout.