MCPcopy
hub / github.com/faif/python-patterns / on_message

Method on_message

patterns/other/hsm/hsm.py:81–85  ·  view source on GitHub ↗
(self, message_type)

Source from the content-addressed store, hash-verified

79 return "check mate status"
80
81 def on_message(self, message_type): # message ignored
82 if message_type in self.message_types.keys():
83 self.message_types[message_type]()
84 else:
85 raise UnsupportedMessageType
86
87
88class Unit:

Calls

no outgoing calls