diff --git a/Simulation/G4Extensions/ExtraParticles/python/PDGParser.py b/Simulation/G4Extensions/ExtraParticles/python/PDGParser.py index 4de1f36931fdf87d98359073756ba5077359486b..d16ef850fbc20890e85d6ba8ed44795f0b2628e2 100644 --- a/Simulation/G4Extensions/ExtraParticles/python/PDGParser.py +++ b/Simulation/G4Extensions/ExtraParticles/python/PDGParser.py @@ -149,8 +149,8 @@ class PDGParser(object): self.extraParticles[name] = ExtraParticle(**kwargs) else: if getattr(self.extraParticles[name], prop) != -1: - self.log.warning("Property %s is already set for particle %s. Current value is %s and incoming value is %s." , - (prop, name, getattr(self.extraParticles[name], prop), value)) + self.log.warning("Property %s is already set for particle %s. Current value is %s and incoming value is %s." % ( + prop, name, getattr(self.extraParticles[name], prop), value)) continue setattr(self.extraParticles[name], prop, value)