From 37b158439d9dd46541d30f8819ba34404bfa6995 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 28 Sep 2015 20:32:55 -0400 Subject: [PATCH] Fix #359 --- service/fit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/fit.py b/service/fit.py index e905dde9fb..c853ec7019 100644 --- a/service/fit.py +++ b/service/fit.py @@ -181,7 +181,8 @@ def deleteFit(self, fitID): # refresh any fits this fit is projected onto. Otherwise, if we have # already loaded those fits, they will not reflect the changes for projection in fit.projectedOnto.values(): - eos.db.saveddata_session.refresh(projection.victim_fit) + if projection.victim_fit in eos.db.saveddata_session: # GH issue #359 + eos.db.saveddata_session.refresh(projection.victim_fit) def copyFit(self, fitID): fit = eos.db.getFit(fitID)