summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-12 11:31:04 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-12 11:31:04 +0000
commit0ad170ce2d5ea81c4aceab16aca27d7f2f3c6e8d (patch)
treeb5d5b414c9de5237280dea402820cc056372c97d
parent4abbd9f8c01301f62ed8817d2e31fadcde1bffda (diff)
downloadmorph-0ad170ce2d5ea81c4aceab16aca27d7f2f3c6e8d.tar.gz
Fix creating a Source() from a cluster morphology
The Source.__init__() function assumes that the artifact.split_rules attribute is not None. Rather than complicating that code with error checks, let's make it always be correct. Avoids traceback from Source.__init__() when passing a cluster morph to `morph build`.
-rw-r--r--morphlib/artifactsplitrule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/artifactsplitrule.py b/morphlib/artifactsplitrule.py
index 246691d8..bc92e5fb 100644
--- a/morphlib/artifactsplitrule.py
+++ b/morphlib/artifactsplitrule.py
@@ -300,4 +300,4 @@ def unify_system_matches(morphology):
def unify_cluster_matches(_):
- return None
+ return SplitRules()