Fix picard.format issues

This commit is contained in:
Sambhav Kothari
2017-04-05 23:14:24 +05:30
parent b0fcc9eedf
commit 3f9d8704e5
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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