diff --git a/factories/TargetFactory.py b/factories/TargetFactory.py index 466c450..4171a95 100644 --- a/factories/TargetFactory.py +++ b/factories/TargetFactory.py @@ -7,7 +7,7 @@ class TargetFactory: glo = globals() # Save globals so the dict does not change during execution of the script for key in glo: - if type(glo[key]) is not type and key == "TargetFactory": + if type(glo[key]) is not type and "TargetFactory" in key: continue target = glo[key]