Skip to content

Commit 999900e

Browse files
committed
also check for None in seconds property
1 parent 314c511 commit 999900e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

discid/disc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ def sectors(self):
313313
@property
314314
def seconds(self):
315315
"""Total length in seconds"""
316-
return _sectors_to_seconds(self.sectors)
316+
if self.sectors is None:
317+
return None
318+
else:
319+
return _sectors_to_seconds(self.sectors)
317320

318321
@property
319322
def mcn(self):

0 commit comments

Comments
 (0)