diff --git a/config.py b/config.py index 74df5d1b9..ff58376ea 100644 --- a/config.py +++ b/config.py @@ -19,7 +19,7 @@ debug = False saveInRoot = False # Version data -version = "1.29.4" +version = "1.29.5" tag = "git" expansionName = "YC119.5" expansionVersion = "1.0" diff --git a/eos/db/saveddata/queries.py b/eos/db/saveddata/queries.py index 4817b89e1..fd8ae93db 100644 --- a/eos/db/saveddata/queries.py +++ b/eos/db/saveddata/queries.py @@ -17,6 +17,8 @@ # along with eos. If not, see . # =============================================================================== +import sys + from sqlalchemy.sql import and_ from sqlalchemy import desc, select @@ -539,5 +541,10 @@ def remove(stuff): def commit(): with sd_lock: - saveddata_session.commit() - saveddata_session.flush() + try: + saveddata_session.commit() + saveddata_session.flush() + except Exception: + saveddata_session.rollback() + exc_info = sys.exc_info() + raise exc_info[0], exc_info[1], exc_info[2] diff --git a/gui/characterEditor.py b/gui/characterEditor.py index 6cd5d6761..ca3aacb70 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -297,6 +297,9 @@ class SkillTreeView(wx.Panel): self.clonesChoice.Bind(wx.EVT_CHOICE, self.cloneChanged) + self.clonesChoice.SetToolTip( + wx.ToolTip("Setting an Alpha clone does not replace the character's skills, but rather caps them to Alpha levels.")) + pmainSizer.Add(hSizer, 0, wx.EXPAND | wx.ALL, 5) # Set up timer for skill search diff --git a/gui/crestFittings.py b/gui/crestFittings.py index 0f1911206..c02801268 100644 --- a/gui/crestFittings.py +++ b/gui/crestFittings.py @@ -407,7 +407,13 @@ class FittingsTreeView(wx.Panel): def displayFit(self, event): selection = self.fittingsTreeCtrl.GetSelection() - fit = json.loads(self.fittingsTreeCtrl.GetPyData(selection)) + data = self.fittingsTreeCtrl.GetPyData(selection) + + if data is None: + event.Skip() + return + + fit = json.loads(data) list = [] for item in fit['items']: diff --git a/service/fit.py b/service/fit.py index 896ca689d..706fc41cc 100644 --- a/service/fit.py +++ b/service/fit.py @@ -185,7 +185,7 @@ class Fit(object): if booster.boosted_fit != fit and booster.boosted_fit in eos.db.saveddata_session: # GH issue #359 refreshFits.add(booster.boosted_fit) - eos.db.saveddata_session.delete(fit) + eos.db.remove(fit) pyfalog.debug(" Need to refresh {} fits: {}", len(refreshFits), refreshFits) for fit in refreshFits: