[LNT] r238988 - Argument errors don't exist, so don't raise them
Chris Matthews
cmatthews5 at apple.com
Wed Jun 3 16:00:24 PDT 2015
Author: cmatthews
Date: Wed Jun 3 18:00:23 2015
New Revision: 238988
URL: http://llvm.org/viewvc/llvm-project?rev=238988&view=rev
Log:
Argument errors don't exist, so don't raise them
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=238988&r1=238987&r2=238988&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/dailyreport.py (original)
+++ lnt/trunk/lnt/server/reporting/dailyreport.py Wed Jun 3 18:00:23 2015
@@ -46,9 +46,9 @@ class DailyReport(object):
"""
if self.machine_runs is None:
- raise ArgumentError("report not initialized")
+ raise TypeError("report not initialized")
if day_index >= self.num_prior_days_to_include:
- raise ArgumentError("invalid day index")
+ raise TypeError("invalid day index")
runs = self.machine_runs.get((machine.id, day_index))
if runs is None:
More information about the llvm-commits
mailing list