mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 21:35:09 +00:00
Fix picard.format issues
This commit is contained in:
@@ -82,7 +82,7 @@ def open_(filename):
|
||||
# None is returned if both the methods fail
|
||||
return None
|
||||
except Exception as error:
|
||||
log.error("Error occured:\n{}".format(error.message))
|
||||
log.error("Error occured:\n{}".format(error))
|
||||
return None
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class TAK(APEv2File):
|
||||
_mimes = ["audio/x-tak"]
|
||||
|
||||
def score(filename, fileobj, header):
|
||||
return header.startswith("tBaK") + filename.lower().endswith(".tak")
|
||||
return header.startswith(b"tBaK") + filename.lower().endswith(".tak")
|
||||
score = staticmethod(score)
|
||||
|
||||
Open = TAK
|
||||
|
||||
Reference in New Issue
Block a user