Skip to content

Commit

Permalink
Fix bug when bytes_read is None
Browse files Browse the repository at this point in the history
  • Loading branch information
cemsbr committed Oct 31, 2016
1 parent 845c022 commit e8fd99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sparklogstats/logparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def end(self):

@property
def bytes_read(self):
return sum(t.metrics.bytes_read for t in self.successful_tasks)
return sum(t.metrics.bytes_read for t in self.successful_tasks
if t.metrics.bytes_read)

@property
def bytes_written(self):
Expand Down

0 comments on commit e8fd99d

Please sign in to comment.