Import message error
@@ -18,7 +18,8 @@ except Exception:
class ImportErrorClass(object):
def __init__(self, lib):
- raise ImportError('Cannot import {} because {} is not installed'.format(self.__name__, lib))
+ msg = 'Cannot import {} because {} is not installed'.format(type(self).__name__, lib)
+ raise ImportError(msg)
from .core.constants import *
from .core.audio_signal import AudioSignal
