Skip to content

Commit c848ce1

Browse files
zasphw
authored andcommitted
Use ValueError exception (missed change)
1 parent fcb8937 commit c848ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picard/item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def tracknumber(self):
110110
"""The track number as an int."""
111111
try:
112112
return int(self.metadata.get('tracknumber', '0').split('/')[0])
113-
except BaseException:
113+
except ValueError:
114114
return 0
115115

116116
@property

0 commit comments

Comments
 (0)