From a413166e7fd4c97f4e930474170f8ecd7430e38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian-Robert=20St=C3=B6ter?= Date: Wed, 20 Dec 2017 12:17:15 +0100 Subject: [PATCH] fix string check --- stempeg/write.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stempeg/write.py b/stempeg/write.py index 9034fbc..4b51726 100644 --- a/stempeg/write.py +++ b/stempeg/write.py @@ -28,7 +28,7 @@ def check_available_aac_encoders(): ][0] hay = aac_codecs.decode('ascii') match = re.findall('\(encoders: ([^\)]*) \)', hay) - if match is not None: + if match: return match[0].split(" ") else: return None