MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / validate

Method validate

eos/saveddata/citadel.py:28–32  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

26
27class Citadel(Ship):
28 def validate(self, item):
29 if item.category.name != "Structure":
30 pyfalog.error("Passed item '{0}' (category: {1}) is not under Structure category", item.name, item.category.name)
31 raise ValueError(
32 'Passed item "%s" (category: (%s)) is not under Structure category' % (item.name, item.category.name))
33
34 def __deepcopy__(self, memo):
35 copy = Citadel(self.item)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected