mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 00:15:20 +01:00
avoid NotImplementedError for the time being
This commit is contained in:
parent
fbed9552ea
commit
0458d16e71
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ class DateType(types.Type):
|
|||
time.localtime(value or 0))
|
||||
|
||||
def parse(self, string):
|
||||
raise NotImplementedError() # FIXME
|
||||
# FIXME Real date parsing.
|
||||
try:
|
||||
return float(string)
|
||||
except ValueError:
|
||||
return 0.0
|
||||
|
||||
|
||||
class PathType(types.Type):
|
||||
|
|
|
|||
Loading…
Reference in a new issue