danielz02 commited on
Commit
48ed6cb
1 Parent(s): 4d75aa7

Log error information of catched exceptions

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -1
src/leaderboard/read_evals.py CHANGED
@@ -105,7 +105,8 @@ class EvalResult:
105
  self.likes = request.get("likes", 0)
106
  self.num_params = request.get("params", 0)
107
  self.date = request.get("submitted_time", "")
108
- except Exception:
 
109
  print(f"Could not find request file ({requests_path}) for {self.org}/{self.model}")
110
 
111
  def to_dict(self):
 
105
  self.likes = request.get("likes", 0)
106
  self.num_params = request.get("params", 0)
107
  self.date = request.get("submitted_time", "")
108
+ except Exception as e:
109
+ print(e)
110
  print(f"Could not find request file ({requests_path}) for {self.org}/{self.model}")
111
 
112
  def to_dict(self):