DSACMS / metrics

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

Fix Bug With Unhandled Timeout Exception #134

Closed IsaacMilarky closed 2 months ago

IsaacMilarky commented 2 months ago

Fix Bug With Unhandled Timeout Exception

Problem

The new advanced metrics do not handle TimeoutError correctly with the requests library. Timeout causes error instead of moving on and relying on past data.

https://github.com/DSACMS/metrics/actions/runs/8678054654/job/23794473500

Solution

Moved the timeout handling to the method used to call all metrics at the base class of both Orgs and Repos.