Skip to content

Commit

Permalink
Glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 30, 2017
1 parent 6347461 commit 422a855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion delta/deltas.py
Expand Up @@ -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
Expand Down

0 comments on commit 422a855

Please sign in to comment.