[LNT] r239444 - Use ValueError here, it closer to the invalid state we are trying to purvey
Chris Matthews
cmatthews5 at apple.com
Tue Jun 9 17:02:07 PDT 2015
Author: cmatthews
Date: Tue Jun 9 19:02:07 2015
New Revision: 239444
URL: http://llvm.org/viewvc/llvm-project?rev=239444&view=rev
Log:
Use ValueError here, it closer to the invalid state we are trying to purvey
Modified:
lnt/trunk/lnt/server/reporting/dailyreport.py
Modified: lnt/trunk/lnt/server/reporting/dailyreport.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/dailyreport.py?rev=239444&r1=239443&r2=239444&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/dailyreport.py (original)
+++ lnt/trunk/lnt/server/reporting/dailyreport.py Tue Jun 9 19:02:07 2015
@@ -48,9 +48,9 @@ class DailyReport(object):
"""
if self.machine_runs is None:
- raise TypeError("report not initialized")
+ raise ValueError("report not initialized")
if day_index >= self.num_prior_days_to_include:
- raise TypeError("invalid day index")
+ raise ValueError("invalid day index")
runs = self.machine_runs.get((machine.id, day_index))
if runs is None:
More information about the llvm-commits
mailing list