From c5c05d6aa5be837aaf872028981db689e49f4553 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 20 May 2012 12:53:38 -0700 Subject: [PATCH] Don't die on variation-less xforms --- cuburn/genome/blend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuburn/genome/blend.py b/cuburn/genome/blend.py index ef32869..f503e43 100644 --- a/cuburn/genome/blend.py +++ b/cuburn/genome/blend.py @@ -228,7 +228,7 @@ def padding_xform(xf, isfinal): if get(xf, 45, 'post_affine', 'spread') > 90: xout['post_affine'] = {'angle': 135, 'spread': 135} - for k in xf['variations']: + for k in xf.get('variations', {}): if k in hole_variations: # Attempt to correct for some known-ugly variations. xout['pre_affine']['angle'] += 180