MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / validate

Method validate

eos/saveddata/ship.py:63–67  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

61 self.commandBonus = 0
62
63 def validate(self, item):
64 if item.category.name != "Ship":
65 pyfalog.error("Passed item '{0}' (category: {1}) is not under Ship category", item.name, item.category.name)
66 raise ValueError(
67 'Passed item "%s" (category: (%s)) is not under Ship category' % (item.name, item.category.name))
68
69 @property
70 def item(self):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected