From 422a85566a6b4f6c48082be76f318657ed15ea0b Mon Sep 17 00:00:00 2001 From: Thorsten Vitt Date: Sat, 30 Sep 2017 19:21:38 +0200 Subject: [PATCH] Glitch --- delta/deltas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/delta/deltas.py b/delta/deltas.py index 7cb01b2..4c54900 100644 --- a/delta/deltas.py +++ b/delta/deltas.py @@ -406,11 +406,12 @@ def prepare(self, corpus): Raises: NotImplementedError if there is no metric """ - if hasattr(self, metric): + if hasattr(self, 'metric'): return corpus else: raise NotImplementedError("This delta function does not support a standard metric.") + class _LinearDelta(DeltaFunction): @staticmethod