Move projectionInfo so it can't be referenced without being assigned

This commit is contained in:
Ebag333
2016-10-19 08:53:11 -07:00
parent 57bbbfcc3b
commit 4036ac8cd2

View File

@@ -461,11 +461,16 @@ class Fit(object):
timer = Timer(u'Fit: {}, {}'.format(self.ID, self.name), logger)
logger.debug("Starting fit calculation on: %r, withBoosters: %s", self, withBoosters)
try:
projectionInfo = self.getProjectionInfo(targetFit.ID)
except:
pass
else:
logger.debug("ProjectionInfo: %s", projectionInfo)
shadow = False
if targetFit:
logger.debug("Applying projections to target: %r", targetFit)
projectionInfo = self.getProjectionInfo(targetFit.ID)
logger.debug("ProjectionInfo: %s", projectionInfo)
if self == targetFit:
copied = self # original fit
shadow = True