Skip to content

Commit

Permalink
also check for None in seconds property
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyJD committed Oct 5, 2013
1 parent 314c511 commit 999900e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion discid/disc.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ def sectors(self):
@property
def seconds(self):
"""Total length in seconds"""
return _sectors_to_seconds(self.sectors)
if self.sectors is None:
return None
else:
return _sectors_to_seconds(self.sectors)

@property
def mcn(self):
Expand Down

0 comments on commit 999900e

Please sign in to comment.