diff --git a/gui/fitCommands/calc/fitImportMutatedModule.py b/gui/fitCommands/calc/fitImportMutatedModule.py index 426f8245b..3a28c68ea 100644 --- a/gui/fitCommands/calc/fitImportMutatedModule.py +++ b/gui/fitCommands/calc/fitImportMutatedModule.py @@ -30,8 +30,12 @@ class FitImportMutatedCommand(wx.Command): pyfalog.warning("Unable to build non-mutated module: no base item to build from") return False - - mutaplasmid = getDynamicItem(getattr(self.mutaItem, 'ID', None)) + try: + mutaTypeID = self.mutaItem.ID + except AttributeError: + mutaplasmid = None + else: + mutaplasmid = getDynamicItem(mutaTypeID) # Try to build simple item even though no mutaplasmid found if mutaplasmid is None: try: