Ensure we do not attempt to import mutated module when we have no fit open

This commit is contained in:
DarkPhoenix
2019-03-30 10:33:01 +03:00
parent 6a2bdade80
commit 96e0a02d5c

View File

@@ -241,10 +241,11 @@ class Port(object):
return "DNA", (cls.importDna(string),)
# Assume that we import stand-alone abyssal module if all else fails
try:
return "MutatedItem", (parseMutant(lines),)
except:
pass
if activeFit is not None:
try:
return "MutatedItem", (parseMutant(lines),)
except:
pass
# EFT-related methods