Show information about a {item_type} item. :param str item_name: the name of the {item_type} item to show information about
(self, item_name: str)
| 118 | self.view.show_item_list(item_type, items) |
| 119 | |
| 120 | def show_item_information(self, item_name: str) -> None: |
| 121 | """ |
| 122 | Show information about a {item_type} item. |
| 123 | :param str item_name: the name of the {item_type} item to show information about |
| 124 | """ |
| 125 | item_type: str = self.model.item_type |
| 126 | try: |
| 127 | item_info: dict = self.model.get(item_name) |
| 128 | except Exception: |
| 129 | self.view.item_not_found(item_type, item_name) |
| 130 | else: |
| 131 | self.view.show_item_information(item_type, item_name, item_info) |
| 132 | |
| 133 | |
| 134 | class Router: |