From b9c36758945a9c9e41f63180513a72f0ba715072 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Tue, 20 Nov 2018 13:51:49 +0300 Subject: [PATCH] Fix case when only module name is passed Still crashes and query cache, will fix later --- gui/fitCommands/calc/fitImportMutatedModule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/fitCommands/calc/fitImportMutatedModule.py b/gui/fitCommands/calc/fitImportMutatedModule.py index d3c182d70..426f8245b 100644 --- a/gui/fitCommands/calc/fitImportMutatedModule.py +++ b/gui/fitCommands/calc/fitImportMutatedModule.py @@ -31,7 +31,7 @@ class FitImportMutatedCommand(wx.Command): return False - mutaplasmid = getDynamicItem(getattr(self.mutaItem, 'ID')) + mutaplasmid = getDynamicItem(getattr(self.mutaItem, 'ID', None)) # Try to build simple item even though no mutaplasmid found if mutaplasmid is None: try: