From 585d4ba89d19da669def0cef38a94065158fd2b7 Mon Sep 17 00:00:00 2001 From: Barry Broderick Date: Mon, 20 Nov 2017 09:56:40 -0500 Subject: [PATCH] attempted fix for #2740 --- beetsplug/hook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beetsplug/hook.py b/beetsplug/hook.py index 833f0feaa..dac38be44 100644 --- a/beetsplug/hook.py +++ b/beetsplug/hook.py @@ -68,6 +68,8 @@ class CodingFormatter(string.Formatter): converted = converted.decode(self._coding) except UnicodeEncodeError: pass + except AttributeError: + converted = value return converted