diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-12 11:31:04 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-12 11:31:04 +0000 |
commit | 0ad170ce2d5ea81c4aceab16aca27d7f2f3c6e8d (patch) | |
tree | b5d5b414c9de5237280dea402820cc056372c97d /morphlib/artifactsplitrule.py | |
parent | 4abbd9f8c01301f62ed8817d2e31fadcde1bffda (diff) | |
download | morph-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`.
Diffstat (limited to 'morphlib/artifactsplitrule.py')
-rw-r--r-- | morphlib/artifactsplitrule.py | 2 |
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() |