You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaFile attempts to always return a usable value (i.e., it never returns None or throws an exception when a tag is accessed). If a tag is not present, an empty and false value of the appropriate type – such as zero or the empty string – is returned.
That's a good point—this did change in beetbox/beets#660, and it also looks like the docstring for _safe_cast is out of date. Fields can now return None if the tag is missing altogether, which is useful for some clients.
Going off the docs.
Is this going against expected behavior or maybe the docs are out of date?
The text was updated successfully, but these errors were encountered: