Skip to content

Commit

Permalink
try-catch the missing enddate exception
Browse files Browse the repository at this point in the history
  • Loading branch information
anjesh committed Aug 6, 2015
1 parent 520dbc0 commit 264b6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion logs/logreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def printStatus(self):
print "PDF Type, Total Pages, Duration"
for l, line in enumerate(self.lines):
line = self.lines[l]
print line.pdfType, ",", line.totalPages, ",", line.endTime - line.startTime
try:
print line.pdfType, ",", line.totalPages, ",", line.endTime - line.startTime
except:
print "Error in the line ", line.pdfType, ",", line.totalPages, ",", line.endTime, line.startTime

class LogLine:
def __init__(self):
Expand Down

0 comments on commit 264b6ee

Please sign in to comment.